nano

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

commit 2dffcf101f2be5773f973398252a68457f7c227e
parent 96fbdfbc7dd60a38ffa67cae7ef5ccaad3915efb
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 30 Aug 2016 11:14:19 +0200

tweaks: fix compilation with --disable-histories

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

diff --git a/src/prompt.c b/src/prompt.c @@ -518,10 +518,13 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, if (kbinput == KEY_WINCH) { refresh_func(); *actual = KEY_WINCH; +#ifndef DISABLE_HISTORIES free(magichistory); +#endif return NULL; } -#endif +#endif /* !NANO_TINY */ + func = func_from_key(&kbinput); if (func == do_cancel || func == do_enter)