Skip to content

Commit c02036e

Browse files
authored
Prompt to save or discard new files even with autosave enabled (zyedidia#3626)
1 parent 698511c commit c02036e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/action/actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ func (h *BufPane) Quit() bool {
19171917
}
19181918
}
19191919

1920-
if config.GlobalSettings["autosave"].(float64) > 0 {
1920+
if config.GlobalSettings["autosave"].(float64) > 0 && h.Buf.Path != "" {
19211921
// autosave on means we automatically save when quitting
19221922
h.SaveCB("Quit", func() {
19231923
h.ForceQuit()

0 commit comments

Comments
 (0)