action/command: On reload prevent overwriting local settings

This commit is contained in:
Jöran Karl
2024-08-08 22:11:54 +02:00
parent 05529596cf
commit 724e29446f

View File

@@ -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()