From 65d81c60cd23d4c82fd0ae174b5673db94a2f0d8 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 9 Oct 2021 12:55:41 +0200 Subject: [PATCH] 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. --- src/global.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/global.c b/src/global.c index 29563c86..454e1299 100644 --- 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