nano

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

commit 820f68f1473fb6e864a168532bf2fdf768b75e4b
parent fabc1e1219973d10f1983003d46e8ee9d8f8c368
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 28 Apr 2025 12:12:03 +0200

bindings: do not list ^L twice (in main help text and help lines)

In my eyes this wasn't really a problem, but... better be precise.

Reported-by: Peter Michaux <petermichaux@gmail.com>

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

diff --git a/src/global.c b/src/global.c @@ -1438,8 +1438,10 @@ void shortcut_init(void) #endif #ifndef NANO_TINY add_to_sclist(MMAIN, "^L", 0, do_cycle, 0); -#endif + add_to_sclist((MMOST|MBROWSER|MHELP|MYESNO)&~MMAIN, "^L", 0, full_refresh, 0); +#else add_to_sclist(MMOST|MBROWSER|MHELP|MYESNO, "^L", 0, full_refresh, 0); +#endif #ifndef NANO_TINY /* Group of "Appearance" toggles. */