nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 3e609ee4c72d0fe1e58a7743ef013ba29480012a
parent 13327203e0d934b034ef32807501b10612c3bf76
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 29 Jun 2020 11:09:12 +0200

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.

Diffstat:
Msrc/global.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/global.c b/src/global.c @@ -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;