diff --git a/src/nano.c b/src/nano.c index 559ac14b..866e7ecf 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3410,7 +3410,7 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool #ifndef DISABLE_MOUSE /* If we got a mouse click and it was on a shortcut, read in the * shortcut character. */ - if (allow_funcs && func_key && input == KEY_MOUSE) { + if (allow_funcs && *func_key == TRUE && input == KEY_MOUSE) { if (do_mouse()) input = get_kbinput(edit, meta_key, func_key); else diff --git a/src/winio.c b/src/winio.c index c2fd6ef3..d7d49753 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1634,7 +1634,7 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t, #ifndef DISABLE_MOUSE /* If we got a mouse click and it was on a shortcut, read in the * shortcut character. */ - if (allow_funcs && func_key && input == KEY_MOUSE) { + if (allow_funcs && *func_key == TRUE && input == KEY_MOUSE) { if (do_mouse()) input = get_kbinput(bottomwin, meta_key, func_key); else