mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 06:12:35 +09:00
config: Rework autosave to be rearmed upon change
This commit is contained in:
@@ -553,7 +553,6 @@ func doSetGlobalOptionNative(option string, nativeValue interface{}) error {
|
||||
} else if option == "autosave" {
|
||||
if nativeValue.(float64) > 0 {
|
||||
config.SetAutoTime(nativeValue.(float64))
|
||||
config.StartAutoSave()
|
||||
} else {
|
||||
config.SetAutoTime(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user