summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-13 23:39:37 +0100
committerhut <hut@lavabit.com>2013-02-13 23:42:27 +0100
commit0566a8eadffa09142cc31d7e0b4feacea99ff5c8 (patch)
tree309dec823358066105befa241177c11b9b8891d9
parent3b762d11664a63c33fe0c6bb79b7f20c417c3980 (diff)
downloadranger-0566a8eadffa09142cc31d7e0b4feacea99ff5c8.tar.gz
widgets.console: Fix commands that open console in quick()
-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']):
         """