From: Jonathan Neuschäfer Date: Sat, 24 Dec 2011 17:28:06 +0000 (+0100) Subject: screen_keydef: don't assign a key twice to one command X-Git-Tag: release-0.20~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b65bf335a9ed146dcdd7208a4b6b45e377e13522;p=ncmpc.git screen_keydef: don't assign a key twice to one command --- diff --git a/src/screen_keydef.c b/src/screen_keydef.c index 22797ea..92c5d3c 100644 --- a/src/screen_keydef.c +++ b/src/screen_keydef.c @@ -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));