diff options
author | hut <hut@lepus.uberspace.de> | 2016-02-11 21:53:22 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-02-11 21:54:06 +0100 |
commit | 24f64474d5184cda9ad752a69030eab691cdd5a9 (patch) | |
tree | 32213d06aa121397447394c1e3a0cb2f74579437 | |
parent | 17aa0b545bc1a9ac9ec1f7411ea670ad6d39097c (diff) | |
download | ranger-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-x | ranger/config/commands.py | 2 |
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): |