mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
config: Use float64 within the autosave processing
This commit is contained in:
@@ -552,7 +552,7 @@ func doSetGlobalOptionNative(option string, nativeValue interface{}) error {
|
||||
}
|
||||
} else if option == "autosave" {
|
||||
if nativeValue.(float64) > 0 {
|
||||
config.SetAutoTime(int(nativeValue.(float64)))
|
||||
config.SetAutoTime(nativeValue.(float64))
|
||||
config.StartAutoSave()
|
||||
} else {
|
||||
config.SetAutoTime(0)
|
||||
|
||||
Reference in New Issue
Block a user