io_load_keys(): Skip legacy entry
This binding was used pre-3.1.0. Simply ignore it and avoid showing a needlessly complicated error message. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
db8886a34c
commit
0f8fe2cf40
5
src/io.c
5
src/io.c
@ -729,6 +729,11 @@ void io_load_keys(const char *pager)
|
|||||||
io_log_print(log, line, _("Could not read key label"));
|
io_log_print(log, line, _("Could not read key label"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Skip legacy entries. */
|
||||||
|
if (strcmp(key_label, "generic-cut") == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
ht_entry.label = key_label;
|
ht_entry.label = key_label;
|
||||||
p = buf + strlen(key_label) + 1;
|
p = buf + strlen(key_label) + 1;
|
||||||
ht_elm = HTABLE_LOOKUP(ht_keybindings, &ht_keys, &ht_entry);
|
ht_elm = HTABLE_LOOKUP(ht_keybindings, &ht_keys, &ht_entry);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user