Fix some #saveoptions issues

The #name default key was 'N', but that gets bound to #runsoutheast
when not using number_pad. Swap around the default #name key to M-n,
and bind the 'N' to it in commands_init instead.

The number_pad option wasn't getting saved because it has a separate
handler - mark the option as changed even if the value did not change
so it will be saved to the config.
This commit is contained in:
Pasi Kallinen
2022-08-20 17:09:17 +03:00
parent 535eb9327a
commit caaa527d45
2 changed files with 4 additions and 2 deletions

View File

@@ -8003,6 +8003,8 @@ doset_simple(void)
reslt = (*allopt[k].optfn)(allopt[k].idx, do_handler,
FALSE, empty_optstr,
empty_optstr);
if (reslt == optn_ok)
got_from_config[k] = TRUE;
} else {
char abuf[BUFSZ];