Skip to content

Commit

Permalink
Prompt to save or discard new files even with autosave enabled (#3626)
Browse files Browse the repository at this point in the history
  • Loading branch information
yz778 authored Jan 25, 2025
1 parent 698511c commit c02036e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/action/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ func (h *BufPane) Quit() bool {
}
}

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

0 comments on commit c02036e

Please sign in to comment.