summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-02-11 21:53:22 +0100
committerhut <hut@lepus.uberspace.de>2016-02-11 21:54:06 +0100
commit24f64474d5184cda9ad752a69030eab691cdd5a9 (patch)
tree32213d06aa121397447394c1e3a0cb2f74579437
parent17aa0b545bc1a9ac9ec1f7411ea670ad6d39097c (diff)
downloadranger-24f64474d5184cda9ad752a69030eab691cdd5a9.tar.gz
config.commands: removed doubled macro expansion in :shell
Previously, `:shell echo %%f` was expanded to `:shell echo <filename>`
rather than `:shell echo %f`.  To include a literal % in a shell
command, you'd have to write `:shell echo %%%%` instead of just `:shell
echo %%`.
-rwxr-xr-xranger/config/commands.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 9aee9f29..66cb2cc8 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -212,8 +212,6 @@ class shell(Command):
         if not command and 'p' in flags:
             command = 'cat %f'
         if command:
-            if '%' in command:
-                command = self.fm.substitute_macros(command, escape=True)
             self.fm.execute_command(command, flags=flags)
 
     def tab(self, tabnum):