nano

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

commit 65d81c60cd23d4c82fd0ae174b5673db94a2f0d8
parent 3d6dcb956804d3e9e5ed12597596478180c35afb
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat,  9 Oct 2021 12:55:41 +0200

help: do not show ^S when --preserve is in effect

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

Bug existed since version 5.0, since the Execute menu was overhauled.

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

diff --git a/src/global.c b/src/global.c @@ -1223,7 +1223,8 @@ void shortcut_init(void) add_to_sclist(MMAIN, "^J", '\n', do_justify, 0); #endif #ifdef ENABLE_SPELLER - add_to_sclist(MEXECUTE, "^S", 0, do_spell, 0); + if (!ISSET(PRESERVE)) + add_to_sclist(MEXECUTE, "^S", 0, do_spell, 0); add_to_sclist(MEXECUTE, "^T", 0, do_spell, 0); #endif #ifdef ENABLE_COLOR