bindings: make the normal scrolling keystrokes work also in help viewer
There is no reason why they shouldn't work.
Этот коммит содержится в:
родитель
9dd6407bea
Коммит
e8751d1d5c
@ -1210,10 +1210,10 @@ void shortcut_init(void)
|
||||
add_to_sclist(MMAIN, "M-0", 0, do_para_end_void, 0);
|
||||
#endif
|
||||
#if !defined(NANO_TINY) || defined(ENABLE_HELP)
|
||||
add_to_sclist(MMAIN, "M--", 0, do_scroll_up, 0);
|
||||
add_to_sclist(MMAIN, "M-_", 0, do_scroll_up, 0);
|
||||
add_to_sclist(MMAIN, "M-+", 0, do_scroll_down, 0);
|
||||
add_to_sclist(MMAIN, "M-=", 0, do_scroll_down, 0);
|
||||
add_to_sclist(MMAIN|MHELP, "M--", 0, do_scroll_up, 0);
|
||||
add_to_sclist(MMAIN|MHELP, "M-_", 0, do_scroll_up, 0);
|
||||
add_to_sclist(MMAIN|MHELP, "M-+", 0, do_scroll_down, 0);
|
||||
add_to_sclist(MMAIN|MHELP, "M-=", 0, do_scroll_down, 0);
|
||||
#endif
|
||||
#ifdef ENABLE_MULTIBUFFER
|
||||
add_to_sclist(MMAIN, "M-<", 0, switch_to_prev_buffer, 0);
|
||||
|
@ -193,9 +193,9 @@ void do_help(void)
|
||||
} else if (ISSET(SHOW_CURSOR) && (func == do_left || func == do_right ||
|
||||
func == do_up || func == do_down)) {
|
||||
func();
|
||||
} else if (func == do_up) {
|
||||
} else if (func == do_up || func == do_scroll_up) {
|
||||
do_scroll_up();
|
||||
} else if (func == do_down) {
|
||||
} else if (func == do_down || func == do_scroll_down) {
|
||||
if (openfile->edittop->lineno + editwinrows - 1 <
|
||||
openfile->filebot->lineno)
|
||||
do_scroll_down();
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user