command: Fix set local-only options for the current buffer only (#3042)

This commit is contained in:
Jöran Karl
2024-03-13 21:34:52 +01:00
committed by GitHub
parent ca3a9d0794
commit 8368af3cc8

View File

@@ -532,8 +532,12 @@ func SetGlobalOptionNative(option string, nativeValue interface{}) error {
}
}
for _, b := range buffer.OpenBuffers {
b.SetOptionNative(option, nativeValue)
if local {
MainTab().CurPane().Buf.SetOptionNative(option, nativeValue)
} else {
for _, b := range buffer.OpenBuffers {
b.SetOptionNative(option, nativeValue)
}
}
return config.WriteSettings(filepath.Join(config.ConfigDir, "settings.json"))