debug: report for which modified editing keys ncurses has no keycode

master
Benno Schulenberg 2018-10-30 19:01:39 +01:00
parent 518a2b4c45
commit 5be94a3bbe
1 changed files with 5 additions and 2 deletions

View File

@ -1531,9 +1531,12 @@ int get_keycode(const char *keyname, const int standard)
if (keyvalue != 0 && keyvalue != (char *)-1 && key_defined(keyvalue))
return key_defined(keyvalue);
else
#endif
return standard;
#ifdef DEBUG
if (!ISSET(REBIND_KEYPAD))
fprintf(stderr, "Using fallback keycode for %s\n", keyname);
#endif
return standard;
}
#ifdef ENABLE_LINENUMBERS