bindings: make "n" work again in file browser and help viewer

Also, "N" shouldn't be a synonym of "n" in tiny mode.
This commit is contained in:
David Lawrence Ramsey 2018-07-29 10:43:24 -05:00 committed by Benno Schulenberg
parent 54a4123d4c
commit 9c8e40b442
3 changed files with 2 additions and 7 deletions

View File

@ -486,11 +486,9 @@ functionptrtype parse_browser_input(int *kbinput)
case '/':
return do_search_forward;
case 'N':
#ifndef NANO_TINY
return do_findprevious;
#endif
case 'n':
return do_research;
return do_findnext;
}
}
return func_from_key(kbinput);

View File

@ -583,11 +583,9 @@ functionptrtype parse_help_input(int *kbinput)
case '/':
return do_search_forward;
case 'N':
#ifndef NANO_TINY
return do_findprevious;
#endif
case 'n':
return do_research;
return do_findnext;
case 'E':
case 'e':
case 'Q':

View File

@ -486,7 +486,6 @@ int findnextstr(const char *needle, bool whole_word_only, int modus,
void do_search(void);
void do_search_forward(void);
void do_search_backward(void);
void do_research(void);
void do_findprevious(void);
void do_findnext(void);
void not_found_msg(const char *str);