mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
action/command: On reload
prevent overwriting volatile settings
This commit is contained in:
parent
c51f848df2
commit
c67a30e611
@ -361,6 +361,11 @@ func reloadRuntime(reloadPlugins bool) {
|
||||
parsedSettings := config.ParsedSettings()
|
||||
defaultSettings := config.DefaultAllSettings()
|
||||
for k := range defaultSettings {
|
||||
if _, ok := config.VolatileSettings[k]; ok {
|
||||
// reload should not override volatile settings
|
||||
continue
|
||||
}
|
||||
|
||||
if _, ok := parsedSettings[k]; ok {
|
||||
err = doSetGlobalOptionNative(k, parsedSettings[k])
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user