commit ba47abb47358b3a5b3865642b51c64ef3ca9975b
parent b9a1a586c0d1497011d602ffb07f797f791810ee
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 11 Sep 2020 18:49:54 +0200
help: ensure the help lines are always drawn, also when using Slang
This is needed when --enable-tiny and --with-slang are used together
with --enable-help.
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/help.c b/src/help.c
@@ -435,8 +435,6 @@ void show_help(void)
location = 0;
didfind = 0;
- bottombars(MHELP);
-
/* Extract the title from the head of the help text. */
length = break_line(help_text, HIGHEST_POSITIVE, TRUE);
title = measured_copy(help_text, length);
@@ -455,6 +453,8 @@ void show_help(void)
lastmessage = VACUUM;
focusing = TRUE;
+ bottombars(MHELP);
+
/* Show the cursor when we searched and found something. */
kbinput = get_kbinput(edit, didfind == 1 || ISSET(SHOW_CURSOR));
didfind = 0;
@@ -480,11 +480,9 @@ void show_help(void)
do_scroll_down();
} else if (func == do_page_up || func == do_page_down ||
func == to_first_line || func == to_last_line ||
+ func == do_search_forward || func == do_search_backward ||
func == do_findprevious || func == do_findnext) {
func();
- } else if (func == do_search_forward || func == do_search_backward) {
- func();
- bottombars(MHELP);
#ifdef ENABLE_NANORC
} else if (func == (functionptrtype)implant) {
implant(first_sc_for(MHELP, func)->expansion);
@@ -503,7 +501,6 @@ void show_help(void)
} else
unbound_key(kbinput);
- currmenu = MHELP;
edit_refresh();
location = 0;