mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-21 16:52:08 +03:00
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.
This commit is contained in:
parent
13327203e0
commit
3e609ee4c7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user