mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-12 05:54:00 +03:00
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:
parent
54a4123d4c
commit
9c8e40b442
@ -486,11 +486,9 @@ functionptrtype parse_browser_input(int *kbinput)
|
|||||||
case '/':
|
case '/':
|
||||||
return do_search_forward;
|
return do_search_forward;
|
||||||
case 'N':
|
case 'N':
|
||||||
#ifndef NANO_TINY
|
|
||||||
return do_findprevious;
|
return do_findprevious;
|
||||||
#endif
|
|
||||||
case 'n':
|
case 'n':
|
||||||
return do_research;
|
return do_findnext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return func_from_key(kbinput);
|
return func_from_key(kbinput);
|
||||||
|
@ -583,11 +583,9 @@ functionptrtype parse_help_input(int *kbinput)
|
|||||||
case '/':
|
case '/':
|
||||||
return do_search_forward;
|
return do_search_forward;
|
||||||
case 'N':
|
case 'N':
|
||||||
#ifndef NANO_TINY
|
|
||||||
return do_findprevious;
|
return do_findprevious;
|
||||||
#endif
|
|
||||||
case 'n':
|
case 'n':
|
||||||
return do_research;
|
return do_findnext;
|
||||||
case 'E':
|
case 'E':
|
||||||
case 'e':
|
case 'e':
|
||||||
case 'Q':
|
case 'Q':
|
||||||
|
@ -486,7 +486,6 @@ int findnextstr(const char *needle, bool whole_word_only, int modus,
|
|||||||
void do_search(void);
|
void do_search(void);
|
||||||
void do_search_forward(void);
|
void do_search_forward(void);
|
||||||
void do_search_backward(void);
|
void do_search_backward(void);
|
||||||
void do_research(void);
|
|
||||||
void do_findprevious(void);
|
void do_findprevious(void);
|
||||||
void do_findnext(void);
|
void do_findnext(void);
|
||||||
void not_found_msg(const char *str);
|
void not_found_msg(const char *str);
|
||||||
|
Loading…
Reference in New Issue
Block a user