Code

screen_keydef: don't assign a key twice to one command
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 24 Dec 2011 17:28:06 +0000 (18:28 +0100)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 24 Dec 2011 17:28:06 +0000 (18:28 +0100)
src/screen_keydef.c

index 22797eab10b8c5bd83b257db9c3cfaa8059960a9..92c5d3c1ed037a8cbb07bfd4398729b2aeb1e8dc 100644 (file)
@@ -206,7 +206,7 @@ assign_new_key(int cmd_index, int key_index)
        }
 
        cmd = find_key_command(key, cmds);
-       if (cmd != CMD_NONE && cmd != cmds[cmd_index].command) {
+       if (cmd != CMD_NONE) {
                screen_status_printf(_("Error: key %s is already used for %s"),
                                     key2str(key),
                                     get_key_command_name(cmd));