From 1b268b6d078c2cbb6276a6a3c4626183730b4fb7 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 9 Sep 2017 17:49:23 +1000 Subject: [PATCH] Attempt to add support for HOME and END in message lists --- mail_menu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mail_menu.c b/mail_menu.c index 760655e..ab74d8e 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -2262,6 +2262,19 @@ void list_messages(struct user_record *user) { s_printf("\e[%d;5H", i - start + 1); } + } else if (c == 70) { + // END KEY + i = msghs->msg_count; + start = i - 22; + if (start < 0) { + start = 0; + } + redraw = 1; + } else if (c == 72) { + // HOME KEY + i = 1; + start = 0; + redraw = 1; } } } else if (c == 13) {