nano

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

commit dcb072d04bc7176dd4142fd756cf95085e0a25c8
parent 4c6ce3c39d3c593dbf7e8d93e74176faff9979e9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 11 Jan 2021 13:22:15 +0100

build: fix compilation for --enable-{tiny,help,multibuffer}

The mark is not available in the tiny version,
nor can the cursor get hidden by --markmatch.

Diffstat:
Msrc/help.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/help.c b/src/help.c @@ -458,11 +458,12 @@ void show_help(void) /* Show the cursor when we searched and found something. */ kbinput = get_kbinput(edit, didfind == 1 || ISSET(SHOW_CURSOR)); - openfile->mark = NULL; - hide_cursor = FALSE; didfind = 0; #ifndef NANO_TINY + openfile->mark = NULL; + hide_cursor = FALSE; + if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) { beep(); continue;