diff options
author | hut <hut@lavabit.com> | 2013-02-13 23:39:37 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-13 23:42:27 +0100 |
commit | 0566a8eadffa09142cc31d7e0b4feacea99ff5c8 (patch) | |
tree | 309dec823358066105befa241177c11b9b8891d9 /ranger | |
parent | 3b762d11664a63c33fe0c6bb79b7f20c417c3980 (diff) | |
download | ranger-0566a8eadffa09142cc31d7e0b4feacea99ff5c8.tar.gz |
widgets.console: Fix commands that open console in quick()
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/console.py | 7 |
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']): """ |