Skip to content

Commit 724e294

Browse files
committed
action/command: On reload prevent overwriting local settings
1 parent 0552959 commit 724e294

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/action/command.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ func reloadRuntime(reloadPlugins bool) {
410410
for _, b := range buffer.OpenBuffers {
411411
config.InitLocalSettings(b.Settings, b.Path)
412412
for k, v := range b.Settings {
413+
if _, ok := b.LocalSettings[k]; ok {
414+
// reload should not override local settings
415+
continue
416+
}
413417
b.DoSetOptionNative(k, v)
414418
}
415419
b.UpdateRules()

0 commit comments

Comments
 (0)