diff options
author | nfnty <git@nfnty.se> | 2017-02-03 01:14:19 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-02-03 01:16:29 +0100 |
commit | 71a5fa56a40fe447a5670aef9800711b93553e25 (patch) | |
tree | d8c4be42b4144a96c1ed684e4d093dea224624de /ranger/api/commands.py | |
parent | bf080d7a110eb9741a143bc8529a55d91862ec0d (diff) | |
download | ranger-71a5fa56a40fe447a5670aef9800711b93553e25.tar.gz |
Fix alias macro expansion
Fixes #732
Diffstat (limited to 'ranger/api/commands.py')
-rw-r--r-- | ranger/api/commands.py | 7 |
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: |