From 9c8e40b4422a8f1c163b207f27cac608fd25306d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sun, 29 Jul 2018 10:43:24 -0500 Subject: [PATCH] bindings: make "n" work again in file browser and help viewer Also, "N" shouldn't be a synonym of "n" in tiny mode. --- src/browser.c | 4 +--- src/help.c | 4 +--- src/proto.h | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/browser.c b/src/browser.c index cb399354..460e10be 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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); diff --git a/src/help.c b/src/help.c index 820d3e45..1ed50ea4 100644 --- a/src/help.c +++ b/src/help.c @@ -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': diff --git a/src/proto.h b/src/proto.h index 20637fda..6ae51ad3 100644 --- a/src/proto.h +++ b/src/proto.h @@ -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);