summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/console.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 3b2781d8..23d4b861 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -420,9 +420,10 @@ class Console(Widget):
             cmd = cls(self.line)
             if cmd:
                 result = cmd.quick()
-                self.line = cmd.updated_line
-                if result:
-                    self.execute(cmd)
+                if self.allow_close:
+                    self.line = cmd.updated_line
+                    if result:
+                        self.execute(cmd)
 
     def ask(self, text, callback, choices=['y', 'n']):
         """