mirror of git://git.sv.gnu.org/nano.git
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:
parent
862574f381
commit
4ef4eb4f12
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue