nano

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

commit 74b9dd68814f3d278286e884fd74e2cb40370743
parent edd0823d9679d66898297b94f0bba0fe565d4c93
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  8 Mar 2024 11:31:02 +0100

help: rebalance the help items when --preserve is used

As a backward search is now normally always bound (to ^B, instead of
conditionally to ^Q), ^L should always be shown in the help viewer.

This fixes https://savannah.gnu.org/bugs/?65434.

Problem existed since commit 8a304bdf, since ^F/^B do a search.

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

diff --git a/src/global.c b/src/global.c @@ -1409,10 +1409,7 @@ void shortcut_init(void) #if !defined(NANO_TINY) || defined(ENABLE_HELP) add_to_sclist(MMAIN, "^L", 0, do_center, 0); #endif - if (!ISSET(PRESERVE)) - add_to_sclist(MMOST|MBROWSER|MHELP|MYESNO, "^L", 0, full_refresh, 0); - else - add_to_sclist(MMOST|MBROWSER|MYESNO, "^L", 0, full_refresh, 0); + add_to_sclist(MMOST|MBROWSER|MHELP|MYESNO, "^L", 0, full_refresh, 0); #ifndef NANO_TINY /* Group of "Appearance" toggles. */