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.
master
Benno Schulenberg 2021-10-09 12:55:41 +02:00
parent 3d6dcb9568
commit 65d81c60cd
1 changed files with 2 additions and 1 deletions

View File

@ -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