mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 14:10:23 +09:00
config: Rework autosave to be rearmed upon change
This commit is contained in:
@@ -356,9 +356,9 @@ func main() {
|
||||
log.Println(clipErr, " or change 'clipboard' option")
|
||||
}
|
||||
|
||||
config.StartAutoSave()
|
||||
if a := config.GetGlobalOption("autosave").(float64); a > 0 {
|
||||
config.SetAutoTime(a)
|
||||
config.StartAutoSave()
|
||||
}
|
||||
|
||||
screen.Events = make(chan tcell.Event)
|
||||
|
||||
Reference in New Issue
Block a user