summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-04-04 01:11:56 +0200
committermathieui <mathieui@mathieui.net>2013-04-04 01:11:56 +0200
commit26fa83dd9a1d0f3a43efc706582ea93980289f71 (patch)
tree28aa5bd1ccaed364979b73389f216156b1d6814d /src/windows.py
parent8a5a5bb644998fe03d8ab90d714c21d1552171a2 (diff)
downloadpoezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.tar.gz
poezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.tar.bz2
poezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.tar.xz
poezio-26fa83dd9a1d0f3a43efc706582ea93980289f71.zip
Add an option to choose between shared and separate input history
- separate_history, defaults to false
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/windows.py b/src/windows.py
index 56eb3ab4..b612e20d 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1508,6 +1508,8 @@ class HistoryInput(Input):
self.current_completed = ''
self.key_func['^R'] = self.toggle_search
self.search = False
+ if config.get('separate_history', 'false') == 'true':
+ self.history = list()
def toggle_search(self):
if self.help_message: