Don't autosave buffers with no path

Closes #955
This commit is contained in:
Zachary Yedidia
2017-12-13 12:43:00 -05:00
parent 4802403308
commit 2bf40f096e

View File

@@ -471,7 +471,9 @@ func main() {
f.function(f.output, f.args...)
continue
case <-autosave:
CurView().Save(true)
if CurView().Buf.Path != "" {
CurView().Save(true)
}
case event = <-events:
}