Skip to content

Commit

Permalink
action/command: On reload prevent overwriting local settings
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Aug 18, 2024
1 parent 0552959 commit 724e294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/action/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 724e294

Please sign in to comment.