From b65bf335a9ed146dcdd7208a4b6b45e377e13522 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sat, 24 Dec 2011 18:28:06 +0100 Subject: [PATCH] screen_keydef: don't assign a key twice to one command --- src/screen_keydef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2