From f66cc63de49c69713631bc5f505992958e5ef5e8 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 9 Jun 2010 12:43:13 +0200 Subject: widgets.console: fixed history in clean mode --- ranger/gui/widgets/console.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 3bb41482..1ee7ebc0 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -66,7 +66,11 @@ class Console(Widget): self.clear() self.histories = [] # load histories from files - if not ranger.arg.clean: + if ranger.arg.clean: + for i in range(4): + self.histories.append( + History(self.settings.max_console_history_size)) + else: self.historypaths = [relpath_conf(x) for x in \ ('history', 'history_search', 'history_qopen', 'history_open')] for i, path in enumerate(self.historypaths): -- cgit 1.4.1-2-gfad0