summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-30 02:47:49 +0100
committernfnty <git@nfnty.se>2017-01-30 02:47:49 +0100
commit648c3f2cbd126db8ef0e52e0d5d0429ca636d172 (patch)
treeba5b9461e580739c47ff5d2021f3e756434621bd
parent36287121fc87a89bb6fed608ffe7324ee702e747 (diff)
downloadranger-648c3f2cbd126db8ef0e52e0d5d0429ca636d172.tar.gz
api.commands.AliasCommand: Fix overwritten attribute
-rw-r--r--ranger/api/commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 57f00456..aa2da3db 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -33,7 +33,7 @@ class CommandContainer(object):
         cmd.based_function = name
         cmd.function_name = name
         cmd.object_name = name
-        cmd.line = full_command
+        cmd.full_command = full_command
         self.commands[name] = cmd
 
     def load_commands_from_module(self, module):
@@ -424,7 +424,7 @@ class AliasCommand(Command):
     based_function = None
     object_name = ""
     function_name = "unknown"
-    line = ""
+    full_command = ""
 
     def execute(self):
         return self._make_cmd().execute()
@@ -444,8 +444,8 @@ class AliasCommand(Command):
         return self._make_cmd().cancel()
 
     def _make_cmd(self):
-        cmd_class = self.fm.commands.get_command(self.line.split()[0])
-        cmd = cmd_class(self.line + ' ' + self.rest(1))
+        cmd_class = self.fm.commands.get_command(self.full_command.split()[0])
+        cmd = cmd_class(self.full_command + ' ' + self.rest(1))
         cmd.quickly_executed = self.quickly_executed
         cmd.quantifier = self.quantifier
         cmd.escape_macros_for_shell = self.escape_macros_for_shell