From dcb072d04bc7176dd4142fd756cf95085e0a25c8 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 11 Jan 2021 13:22:15 +0100 Subject: [PATCH] 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. --- src/help.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/help.c b/src/help.c index 62dfcdfb..b1a309ad 100644 --- 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;