gui: Avoid bogus "key is not bound" message.
authorAndre Noll <maan@systemlinux.org>
Thu, 22 Apr 2010 07:27:24 +0000 (09:27 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 22 Apr 2010 07:27:24 +0000 (09:27 +0200)
Commit 0e4306dd5162a2850e623bf3082b3f7291aaad45 introduced a
bug causing para_gui to print a "key not found" message after
each command. Fix it by inserting a missing return statement.

gui.c

diff --git a/gui.c b/gui.c
index 5f2dba0..64fab61 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1373,6 +1373,7 @@ static void handle_command(int c)
                                command_list[num].handler();
                }
                free(tmp);
+               return;
        }
        /* not found, check internal key bindings */
        for (i = 0; command_list[i].handler; i++) {