summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-25 23:50:54 +0100
committerhut <hut@lavabit.com>2013-04-07 01:22:50 +0200
commit1f73d69ef3362239d06f4e0cdf806565f431f025 (patch)
tree2c08835c2a84493976657e17b92e7a9d5113958f
parent16c24d63dfaf40d3ffd45df2e8ecc2bbc4f0ad40 (diff)
downloadranger-1f73d69ef3362239d06f4e0cdf806565f431f025.tar.gz
core.fm: only apply open_all_files to cmds with $@
-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 ':