summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-03-01 22:56:42 +0000
committerGitHub <noreply@github.com>2018-03-01 22:56:42 +0000
commit5cf212e496faefeb6b4381c8aff19177f66f7bd1 (patch)
treebc83bfbe7160dc8b5a555ca74604ecb94e7cf75c
parenteb353fde6a5c1588c850db4cc0a28eea4a13b844 (diff)
parent5c5c3fe196f49d608b5e4a299c68983b72202215 (diff)
Merge pull request #1217 from dcbaker/fix-1216
CompleteEdit: go up when the up key is pressed
-rw-r--r--alot/widgets/globals.py2
1 files changed, 1 insertions, 1 deletions
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)