Fix autosave not running by default

This commit is contained in:
Zachary Yedidia
2020-10-08 23:33:34 -04:00
parent cfcb2e4577
commit a424a0dca1
2 changed files with 10 additions and 6 deletions

View File

@@ -354,6 +354,11 @@ func main() {
action.InfoBar.Error(clipErr, " or change 'clipboard' option")
}
if a := config.GetGlobalOption("autosave").(float64); a > 0 {
config.SetAutoTime(int(a))
config.StartAutoSave()
}
screen.Events = make(chan tcell.Event)
// Here is the event loop which runs in a separate thread