Skip to content

Commit c5f38ad

Browse files
committed
Actually default the XTerm title if the version is there but empty
1 parent aaee45b commit c5f38ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/textual_dev/tools/diagnose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _guess_term() -> str:
8787
elif "GNOME_TERMINAL_SCREEN" in os.environ:
8888
term_program = "GNOME Terminal"
8989
elif "XTERM_VERSION" in os.environ:
90-
term_program = os.environ.get("XTERM_VERSION", "XTerm")
90+
term_program = os.environ.get("XTERM_VERSION") or "XTerm"
9191

9292
else:
9393
# See if we can pull out some sort of version information too.

0 commit comments

Comments
 (0)