From 8ee68e2883fdfd5a77c07f77e30ca5781fa9dfd1 Mon Sep 17 00:00:00 2001 From: William Erik Baxter Date: Fri, 23 Nov 2012 12:07:47 -0500 Subject: Notify for unknown movement. --- alot/commands/globals.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3