mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-22 15:00:26 +09:00
Prompt to save or discard new files even with autosave enabled (#3626)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user