nano

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

commit b8b71399e883257ba0c3f38837d4536e2c5f3c52
parent fb78eea6fc86bb643ae48d9bcbd349e73c337ebe
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  5 May 2025 12:56:40 +0200

menus: reshuffle an item, to avoid truncating its help-line label

The label "Discard buffer" is rather long (and is in most translations),
so make the item the last-but-one so that it effectively has the space
for two labels available (because the number of items in the WriteOut
menu is currently uneven).

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

diff --git a/src/global.c b/src/global.c @@ -1164,6 +1164,9 @@ void shortcut_init(void) N_("Suspend"), WHENHELP(suspend_gist), BLANKAFTER); #endif /* !NANO_TINY */ + add_to_funcs(discard_buffer, MWRITEFILE, + N_("Discard buffer"), WHENHELP(discardbuffer_gist), BLANKAFTER); + #ifdef ENABLE_BROWSER /* The file browser is only available when not in restricted mode. */ if (!ISSET(RESTRICTED)) @@ -1193,9 +1196,6 @@ void shortcut_init(void) #endif #endif /* ENABLE_BROWSER */ - add_to_funcs(discard_buffer, MWRITEFILE, - N_("Discard buffer"), WHENHELP(discardbuffer_gist), BLANKAFTER); - #ifdef ENABLE_LINTER add_to_funcs(do_page_up, MLINTER, /* TRANSLATORS: The next two strings may be up to 37 characters each. */