diff options
Diffstat (limited to 'poezio/windows/inputs.py')
-rw-r--r-- | poezio/windows/inputs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py index d1716914..7e0155e1 100644 --- a/poezio/windows/inputs.py +++ b/poezio/windows/inputs.py @@ -563,6 +563,7 @@ class HistoryInput(Input): def __init__(self): Input.__init__(self) self.help_message = '' + self.histo_pos = -1 self.current_completed = '' self.key_func['^R'] = self.toggle_search self.search = False @@ -647,7 +648,6 @@ class MessageInput(HistoryInput): def __init__(self): HistoryInput.__init__(self) self.last_completion = None - self.histo_pos = -1 self.key_func["KEY_UP"] = self.key_up self.key_func["M-A"] = self.key_up self.key_func["KEY_DOWN"] = self.key_down @@ -702,7 +702,6 @@ class CommandInput(HistoryInput): self.key_func["M-A"] = self.key_up self.key_func["KEY_DOWN"] = self.key_down self.key_func["M-B"] = self.key_down - self.histo_pos = -1 def do_command(self, key, reset=True, raw=False): res = Input.do_command(self, key, reset=reset, raw=raw) |