Fix #2674: proper banner display for window splits (#2743)

This commit fixes #2674. A bug in commands.context implementation where we printed out the banner without a newline when context was forwarded to separate terminals.
pull/2747/head
Disconnect3d 10 months ago committed by GitHub
parent 607b2c2f5d
commit ff4c3a6ba2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -674,9 +674,7 @@ def context(subcontext=None, enabled=None) -> None:
with target as out:
if result_settings[target].get("clearing", config_clear_screen) and lines:
clear_screen(out)
out.write("\n".join(lines))
if out is sys.stdout:
out.write("\n")
out.writelines(line + "\n" for line in lines)
out.flush()

Loading…
Cancel
Save