From 5c5c3fe196f49d608b5e4a299c68983b72202215 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 1 Mar 2018 10:44:07 -0800 Subject: CompleteEdit: go up when the up key is pressed The code currently uses "cursor up", which seems wrong to me. This corrects searching through prompt history only moving in one direction. Fixes #1216 --- alot/widgets/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot') diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index 1a8688fe..e4253e15 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -167,7 +167,7 @@ class CompleteEdit(urwid.Edit): if self.historypos is None: self.history.append(self.edit_text) self.historypos = len(self.history) - 1 - if key == 'cursor up': + if key == 'up': self.historypos = (self.historypos + 1) % len(self.history) else: self.historypos = (self.historypos - 1) % len(self.history) -- cgit v1.2.3