mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
action/command: On reload prevent overwriting local settings
This commit is contained in:
parent
05529596cf
commit
724e29446f
1 changed files with 4 additions and 0 deletions
|
|
@ -410,6 +410,10 @@ func reloadRuntime(reloadPlugins bool) {
|
|||
for _, b := range buffer.OpenBuffers {
|
||||
config.InitLocalSettings(b.Settings, b.Path)
|
||||
for k, v := range b.Settings {
|
||||
if _, ok := b.LocalSettings[k]; ok {
|
||||
// reload should not override local settings
|
||||
continue
|
||||
}
|
||||
b.DoSetOptionNative(k, v)
|
||||
}
|
||||
b.UpdateRules()
|
||||
|
|
|
|||
Loading…
Reference in a new issue