nano

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

commit b8a2a6d7e5b7c7e5accad07187e9e9c934516458
parent 08cd7ef274f3894d6cc8c92223f771ccffa6b520
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun,  2 Jan 2005 21:13:36 +0000

in do_input() and do_statusbar_input(), func_key is an int* and not an
int; fix bad code due to the latter assumption


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2214 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/nano.c | 2+-
Msrc/winio.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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