mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
Prompt to save or discard new files even with autosave enabled (#3626)
This commit is contained in:
parent
698511c5b6
commit
c02036e52f
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue