aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-05 15:56:51 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-12-05 16:02:04 +0100
commit0f8fe2cf407af2140893653d2f0cfeabbf5a2c95 (patch)
treeb930d44ebe89777041766aceebc375b4c4b211db /src
parentdb8886a34cfc026b7a95ab0256317e5ec7ce728a (diff)
downloadcalcurse-0f8fe2cf407af2140893653d2f0cfeabbf5a2c95.tar.gz
calcurse-0f8fe2cf407af2140893653d2f0cfeabbf5a2c95.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index b8fccfd..884e3a9 100644
--- a/src/io.c
+++ b/src/io.c
@@ -729,6 +729,11 @@ void io_load_keys(const char *pager)
io_log_print(log, line, _("Could not read key label"));
continue;
}
+
+ /* Skip legacy entries. */
+ if (strcmp(key_label, "generic-cut") == 0)
+ continue;
+
ht_entry.label = key_label;
p = buf + strlen(key_label) + 1;
ht_elm = HTABLE_LOOKUP(ht_keybindings, &ht_keys, &ht_entry);