rcfile: complain when an essential key binding is missing

This fixes https://savannah.gnu.org/bugs/?58670.

Bug existed since commit 009fb2fa from two days ago.
master
Benno Schulenberg 2020-06-29 11:09:12 +02:00
parent 13327203e0
commit 3e609ee4c7
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ void add_to_sclist(int menus, const char *scstring, const int keycode,
const keystruct *first_sc_for(int menu, void (*func)(void))
{
for (keystruct *sc = sclist; sc != NULL; sc = sc->next)
if ((sc->menus & menu) && sc->func == func)
if ((sc->menus & menu) && sc->func == func && sc->keystr[0])
return sc;
return NULL;