diff options
-rw-r--r-- | alot/widgets/globals.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index 470a517f..7ac1332c 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -166,9 +166,9 @@ class CompleteEdit(urwid.Edit): self.history.append(self.edit_text) self.historypos = len(self.history) - 1 if key == 'up': - self.historypos = (self.historypos + 1) % len(self.history) - else: self.historypos = (self.historypos - 1) % len(self.history) + else: + self.historypos = (self.historypos + 1) % len(self.history) self.set_edit_text(self.history[self.historypos]) elif key == 'enter': self.on_exit(self.edit_text) |