nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 031166c34ddedd035780fd5b689b550e15d2cd01
parent 5e769686fbc0ff2fb64d054393c627f9d3a6a359
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 24 Feb 2019 11:23:48 +0100

help: don't list the unbound <Alt+Up> and <Alt+Down> in the tiny version

Diffstat:
Msrc/global.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -1213,13 +1213,13 @@ void shortcut_init(void) add_to_sclist(MMAIN, "M-)", 0, do_para_end_void, 0); add_to_sclist(MMAIN, "M-0", 0, do_para_end_void, 0); #endif -#if !defined(NANO_TINY) || defined(ENABLE_HELP) -#ifdef ENABLE_UTF8 +#if !defined(NANO_TINY) && defined(ENABLE_UTF8) if (using_utf8()) { add_to_sclist(MMAIN|MHELP, "M-\xE2\x96\xb2", ALT_UP, do_scroll_up, 0); add_to_sclist(MMAIN|MHELP, "M-\xE2\x96\xbc", ALT_DOWN, do_scroll_down, 0); } #endif +#if !defined(NANO_TINY) || defined(ENABLE_HELP) 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);