diff --git a/src/global.c b/src/global.c index f771f4f1..f1752a8a 100644 --- a/src/global.c +++ b/src/global.c @@ -1168,8 +1168,8 @@ void shortcut_init(void) add_to_sclist(MMOST, "^F", 0, do_right, 0); #ifdef ENABLE_UTF8 if (using_utf8()) { - add_to_sclist(MMOST, "\xE2\x97\x80", KEY_LEFT, do_left, 0); - add_to_sclist(MMOST, "\xE2\x96\xb6", KEY_RIGHT, do_right, 0); + add_to_sclist(MMOST|MHELP, "\xE2\x97\x80", KEY_LEFT, do_left, 0); + add_to_sclist(MMOST|MHELP, "\xE2\x96\xb6", KEY_RIGHT, do_right, 0); add_to_sclist(MSOME, "^\xE2\x97\x80", CONTROL_LEFT, do_prev_word_void, 0); add_to_sclist(MSOME, "^\xE2\x96\xb6", CONTROL_RIGHT, do_next_word_void, 0); #ifdef ENABLE_MULTIBUFFER @@ -1183,8 +1183,8 @@ void shortcut_init(void) } else #endif { - add_to_sclist(MMOST, "Left", KEY_LEFT, do_left, 0); - add_to_sclist(MMOST, "Right", KEY_RIGHT, do_right, 0); + add_to_sclist(MMOST|MHELP, "Left", KEY_LEFT, do_left, 0); + add_to_sclist(MMOST|MHELP, "Right", KEY_RIGHT, do_right, 0); add_to_sclist(MSOME, "^Left", CONTROL_LEFT, do_prev_word_void, 0); add_to_sclist(MSOME, "^Right", CONTROL_RIGHT, do_next_word_void, 0); } diff --git a/src/help.c b/src/help.c index f3e2d113..60b5efa5 100644 --- a/src/help.c +++ b/src/help.c @@ -183,13 +183,16 @@ void do_help(void) focusing = TRUE; /* Show the cursor when we searched and found something. */ - kbinput = get_kbinput(edit, didfind == 1); + kbinput = get_kbinput(edit, didfind == 1 || ISSET(SHOW_CURSOR)); didfind = 0; func = parse_help_input(&kbinput); if (func == total_refresh) { total_redraw(); + } else if (ISSET(SHOW_CURSOR) && (func == do_left || func == do_right || + func == do_up || func == do_down)) { + func(); } else if (func == do_up) { do_scroll_up(); } else if (func == do_down) {