mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-17 06:17:12 +09:00
command: Fix set local-only options for the current buffer only (#3042)
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user