From 0566a8eadffa09142cc31d7e0b4feacea99ff5c8 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 13 Feb 2013 23:39:37 +0100 Subject: widgets.console: Fix commands that open console in quick() --- ranger/gui/widgets/console.py | 7 ++++--- 1 file 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']): """ -- cgit 1.4.1-2-gfad0 r> mirror of ranger - a simple, vim-like file managerakspecs <akspecs@tilde.institute>
about summary refs log blame commit diff stats
path: root/test/tc_direction.py
blob: f45b4b36d30223f8e49caedf3a2ebe8daacdbedc (plain) (tree)