summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/fm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index f0c97d16..b2c23a1d 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -134,7 +134,8 @@ class FM(Actions, SignalDispatcher):
                 escaped_filenames = " ".join(shell_quote(f) \
                         for f in images if "\x00" not in f)
 
-                if images and self.thisfile.basename in images:
+                if images and self.thisfile.basename in images and \
+                        "$@" in command:
                     new_command = None
 
                     if command[0:5] == 'sxiv ':