From b4b9e9b0120c25d42f44e74d5eb2650935baf680 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 29 Sep 2018 09:40:53 +0200 Subject: [PATCH] linter: allow using and to jump to other message These are more "natural" keystrokes for jumping than and . --- src/global.c | 8 ++++---- src/text.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/global.c b/src/global.c index 29f38601..f9bbf31b 100644 --- a/src/global.c +++ b/src/global.c @@ -1198,15 +1198,15 @@ void shortcut_init(void) if (using_utf8()) { add_to_sclist(MMAIN|MHELP|MBROWSER, "\xE2\x96\xb2", KEY_UP, do_up, 0); add_to_sclist(MMAIN|MHELP|MBROWSER, "\xE2\x96\xbc", KEY_DOWN, do_down, 0); - add_to_sclist(MMAIN|MBROWSER, "^\xE2\x96\xb2", CONTROL_UP, do_prev_block, 0); - add_to_sclist(MMAIN|MBROWSER, "^\xE2\x96\xbc", CONTROL_DOWN, do_next_block, 0); + add_to_sclist(MMAIN|MBROWSER|MLINTER, "^\xE2\x96\xb2", CONTROL_UP, do_prev_block, 0); + add_to_sclist(MMAIN|MBROWSER|MLINTER, "^\xE2\x96\xbc", CONTROL_DOWN, do_next_block, 0); } else #endif { add_to_sclist(MMAIN|MHELP|MBROWSER, "Up", KEY_UP, do_up, 0); add_to_sclist(MMAIN|MHELP|MBROWSER, "Down", KEY_DOWN, do_down, 0); - add_to_sclist(MMAIN|MBROWSER, "^Up", CONTROL_UP, do_prev_block, 0); - add_to_sclist(MMAIN|MBROWSER, "^Down", CONTROL_DOWN, do_next_block, 0); + add_to_sclist(MMAIN|MBROWSER|MLINTER, "^Up", CONTROL_UP, do_prev_block, 0); + add_to_sclist(MMAIN|MBROWSER|MLINTER, "^Down", CONTROL_DOWN, do_next_block, 0); } add_to_sclist(MMAIN, "M-7", 0, do_prev_block, 0); add_to_sclist(MMAIN, "M-8", 0, do_next_block, 0); diff --git a/src/text.c b/src/text.c index 5f0ecf8f..a3848e3e 100644 --- a/src/text.c +++ b/src/text.c @@ -3287,12 +3287,12 @@ void do_linter(void) else if (func == do_help_void) { tmplint = NULL; do_help_void(); - } else if (func == do_page_down) { + } else if (func == do_page_down || func == do_next_block) { if (curlint->next != NULL) curlint = curlint->next; else statusbar(_("At last message")); - } else if (func == do_page_up) { + } else if (func == do_page_up || func == do_prev_block) { if (curlint->prev != NULL) curlint = curlint->prev; else