about 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 ':
-tests.cc?h=main&id=0828df68de1defe68d63fd19cd3ed76be09918c8'>^
caaeccd6 ^
caaeccd6 ^
4a943d4e ^
6f6d458f ^

4a943d4e ^
83c67014 ^
4a943d4e ^












caaeccd6 ^

83c67014 ^
c442a5ad ^
caaeccd6 ^





03d50cc8 ^
caaeccd6 ^




03d50cc8 ^
caaeccd6 ^
















caaeccd6 ^



























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95