about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 18:03:47 +0200
committertoonn <toonn@toonn.io>2021-08-27 18:03:47 +0200
commit53ccd22dbe37e0e42528e0c405a1a461514e0965 (patch)
treec512069a264a30f6e37c3dc4d4cb98330436dd44
parenta438b08835062e39b6da212066e5a5c95d6f9828 (diff)
parent96074013e976c6b02116a9f456539cdbfc847d57 (diff)
downloadranger-53ccd22dbe37e0e42528e0c405a1a461514e0965.tar.gz
Merge remote-tracking branch 'lverweijen/issue-2195'
-rw-r--r--ranger/gui/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 686b624e..4fadd4ec 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -51,7 +51,7 @@ def _setup_mouse(signal):
 
 
 def _in_tmux():
-    return ('TMUX' in os.environ
+    return (os.environ.get('TMUX')
             and 'tmux' in get_executables())