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.
This commit is contained in:
Benno Schulenberg 2024-03-08 11:31:02 +01:00
parent edd0823d96
commit 74b9dd6881
1 changed files with 1 additions and 4 deletions

View File

@ -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);
#ifndef NANO_TINY
/* Group of "Appearance" toggles. */