diff options
author | William Erik Baxter <web@superscript.com> | 2012-11-23 12:07:47 -0500 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-02-19 10:06:28 +0000 |
commit | 8ee68e2883fdfd5a77c07f77e30ca5781fa9dfd1 (patch) | |
tree | 0c3739caffbe39424f5222a733a1c8e8e92ecb35 | |
parent | b3cfccca675a448265d9d2b3f9b554e34be9fa65 (diff) |
Notify for unknown movement.
-rw-r--r-- | alot/commands/globals.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index f78a50b9..eee6a7c0 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -797,7 +797,11 @@ class MoveCommand(Command): Command.__init__(self, **kwargs) def apply(self, ui): - ui.mainloop.process_input([self.movement]) + if self.movement in ['up', 'down', 'page up', 'page down']: + ui.mainloop.process_input([self.movement]) + else: + ui.notify('unknown movement: ' + self.movement, + priority='error') class CommandSequenceCommand(Command): |