about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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())