about summary refs log tree commit diff stats
path: root/ranger/api/commands.py
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-02-03 01:14:19 +0100
committernfnty <git@nfnty.se>2017-02-03 01:16:29 +0100
commit71a5fa56a40fe447a5670aef9800711b93553e25 (patch)
treed8c4be42b4144a96c1ed684e4d093dea224624de /ranger/api/commands.py
parentbf080d7a110eb9741a143bc8529a55d91862ec0d (diff)
downloadranger-71a5fa56a40fe447a5670aef9800711b93553e25.tar.gz
Fix alias macro expansion
Fixes #732
Diffstat (limited to 'ranger/api/commands.py')
-rw-r--r--ranger/api/commands.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index b7497b61..1997cde5 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -104,10 +104,13 @@ class Command(FileManagerAware):
     _setting_line = None
 
     def __init__(self, line, quantifier=None):
-        self.line = line
-        self.args = line.split()
+        self.init_line(line)
         self.quantifier = quantifier
         self.quickly_executed = False
+
+    def init_line(self, line):
+        self.line = line
+        self.args = line.split()
         try:
             self.firstpart = line[:line.rindex(' ') + 1]
         except ValueError: