options: make --modernbindings actually override --preserve

When modern bindings are requested, ^S should save and ^Q must exit,
so --preserve and 'set preserve' need to be cancelled.

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

Bug existed since commit 18b37c98, which introduced --modernbindings.
This commit is contained in:
Benno Schulenberg 2024-03-08 11:04:48 +01:00
parent 862574f381
commit 4ef4eb4f12
1 changed files with 4 additions and 0 deletions

View File

@ -2253,6 +2253,10 @@ int main(int argc, char **argv)
if (ISSET(RAW_SEQUENCES))
UNSET(USE_MOUSE);
/* When --modernbindings is used, ^Q and ^S need to be functional. */
if (ISSET(MODERN_BINDINGS))
UNSET(PRESERVE);
/* When suppressing title bar or minibar, suppress also the help lines. */
if (ISSET(ZERO))
SET(NO_HELP);