summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/api/commands.py1
-rw-r--r--ranger/config/commands.py2
-rw-r--r--ranger/gui/widgets/console.py8
3 files changed, 2 insertions, 9 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 4250a5da..ce381e18 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -90,7 +90,6 @@ class Command(FileManagerAware):
 
     def __init__(self, line, quantifier=None):
         self.line = line
-        self.updated_line = line
         self.args = line.split()
         self.quantifier = quantifier
         try:
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 4dce770f..7411face 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -40,8 +40,6 @@
 # self.args: A list of all (space-separated) arguments to the command.
 # self.quantifier: If this command was mapped to the key "X" and
 #      the user pressed 6X, self.quantifier will be 6.
-# self.updated_line: The quick() method can overwrite this attribute and
-#      the console will use it as the new line.
 # self.arg(n): The n-th argument, or an empty string if it doesn't exist.
 # self.rest(n): The n-th argument plus everything that followed.  For example,
 #      If the command was "search foo bar a b c", rest(2) will be "bar a b c"
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 23d4b861..10458a54 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -418,12 +418,8 @@ class Console(Widget):
             pass
         else:
             cmd = cls(self.line)
-            if cmd:
-                result = cmd.quick()
-                if self.allow_close:
-                    self.line = cmd.updated_line
-                    if result:
-                        self.execute(cmd)
+            if cmd and cmd.quick():
+                self.execute(cmd)
 
     def ask(self, text, callback, choices=['y', 'n']):
         """
evious revision' href='/akspecs/ranger/blame/doc/sxivall.sh?h=v1.9.3&id=e72815692e7fb66a452a930646c1fd31aafefa9e'>^
baf1bafa ^
b53a97ed ^
baf1bafa ^




b53a97ed ^

bef8a8f8 ^
796074b5 ^
dcbc83fe ^

b53a97ed ^
62af2777 ^
dcbc83fe ^

796074b5 ^
dcbc83fe ^
796074b5 ^
dcbc83fe ^
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