summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-10 01:54:21 +0100
committerhut <hut@lepus.uberspace.de>2014-12-10 02:01:07 +0100
commit2cd8bc7768ab3bdb95a2bdf49565db96d75659c1 (patch)
tree97973740465356c9698b3a9c76826b0b3c341993 /ranger
parentbd2bf1db6adab385bc774f841b1fc1d0fecf85c6 (diff)
downloadranger-2cd8bc7768ab3bdb95a2bdf49565db96d75659c1.tar.gz
api.commands: pass attributes of AliasCommand to actual command
Diffstat (limited to 'ranger')
-rw-r--r--ranger/api/commands.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 98b0a23a..7f5fcf36 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -405,8 +405,13 @@ class AliasCommand(Command):
         return self._make_cmd().cancel()
 
     def _make_cmd(self):
-        Cmd = self.fm.commands.get_command(self._line.split()[0])
-        return Cmd(self._line + ' ' + self.rest(1))
+        cmd_class = self.fm.commands.get_command(self._line.split()[0])
+        cmd = cmd_class(self._line + ' ' + self.rest(1))
+        cmd.quantifier = self.quantifier
+        cmd.escape_macros_for_shell = self.escape_macros_for_shell
+        cmd.resolve_macros = self.resolve_macros
+        cmd.allow_abbrev = self.allow_abbrev
+        return cmd
 
 
 if __name__ == '__main__':