summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent36287121fc87a89bb6fed608ffe7324ee702e747 (diff)
downloadranger-648c3f2cbd126db8ef0e52e0d5d0429ca636d172.tar.gz
api.commands.AliasCommand: Fix overwritten attribute
Diffstat (limited to 'ranger')
-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
xed unit tests' href='/akspecs/ranger/commit/test/tc_displayable.py?h=v1.4.1&id=dd4a4145c5e43b191d54fdddbc16b037a5d7345e'>dd4a4145 ^
1159f9ec ^



f7819821 ^



1159f9ec ^
dd4a4145 ^



1159f9ec ^
















1159f9ec ^


dd4a4145 ^
1159f9ec ^
dd4a4145 ^





1159f9ec ^
dd4a4145 ^


1159f9ec ^
dd4a4145 ^


1159f9ec ^
1159f9ec ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144