nano

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

commit 368ec04870a366b19f1c5801a6868786547968b0
parent ce94cb1dc62b0c99382e699a6f2b66f004dd7043
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 19 Sep 2018 20:36:39 +0200

build: fix compilation again when configured with --enable-tiny

Reported-by: Jordi Mallach <jordi@mallach.net>

Diffstat:
Msrc/nano.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -1756,7 +1756,10 @@ int do_input(bool allow_funcs) if (shortcut == NULL) pletion_line = NULL; else { - if (ISSET(VIEW_MODE) && shortcut->func != do_toggle_void && + if (ISSET(VIEW_MODE) && +#ifndef NANO_TINY + shortcut->func != do_toggle_void && +#endif !okay_for_view(shortcut)) { print_view_warning(); return ERR;