about summary refs log tree commit diff stats
path: root/ranger/gui/widgets/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/console.py')
-rw-r--r--ranger/gui/widgets/console.py8
1 files changed, 2 insertions, 6 deletions
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']):
         """