tweaks: fix compilation with --enable-{tiny,help,multibuffer}

This fixes https://savannah.gnu.org/bugs/?51777.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
master
Benno Schulenberg 2017-08-19 17:33:43 +02:00
parent 54a92614b2
commit b38b020d18
1 changed files with 10 additions and 10 deletions

View File

@ -206,13 +206,13 @@ void do_help(void)
} else if (func == do_search) { } else if (func == do_search) {
do_search(); do_search();
bottombars(MHELP); bottombars(MHELP);
} else if (func == do_research) {
do_research();
#ifndef NANO_TINY
} else if (func == do_findprevious) { } else if (func == do_findprevious) {
do_findprevious(); do_findprevious();
currmenu = MHELP; } else if (func == do_findnext) {
} else if (func == do_findnext || func == do_research) { do_findnext();
do_research();
currmenu = MHELP;
#ifndef NANO_TINY
} else if (kbinput == KEY_WINCH) { } else if (kbinput == KEY_WINCH) {
; /* Nothing to do. */ ; /* Nothing to do. */
#endif #endif
@ -229,11 +229,9 @@ void do_help(void)
unbound_key(kbinput); unbound_key(kbinput);
/* If we searched and found something, let the cursor show it. */ /* If we searched and found something, let the cursor show it. */
if (didfind == 1) curs_set(didfind == 1 ? 1 : 0);
curs_set(1);
else
curs_set(0);
currmenu = MHELP;
edit_refresh(); edit_refresh();
location = 0; location = 0;
@ -579,9 +577,11 @@ functionptrtype parse_help_input(int *kbinput)
case '/': case '/':
return do_search; return do_search;
case 'N': case 'N':
#ifndef NANO_TINY
return do_findprevious; return do_findprevious;
#endif
case 'n': case 'n':
return do_findnext; return do_research;
case 'E': case 'E':
case 'e': case 'e':
case 'Q': case 'Q':