mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
No backups for no name files
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package action
|
||||
|
||||
import (
|
||||
"os"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
@@ -1167,7 +1167,7 @@ func (h *BufPane) Quit() bool {
|
||||
} else {
|
||||
screen.Screen.Fini()
|
||||
InfoBar.Close()
|
||||
os.Exit(0)
|
||||
runtime.Goexit()
|
||||
}
|
||||
}
|
||||
if h.Buf.Modified() {
|
||||
@@ -1207,7 +1207,7 @@ func (h *BufPane) QuitAll() bool {
|
||||
}
|
||||
screen.Screen.Fini()
|
||||
InfoBar.Close()
|
||||
os.Exit(0)
|
||||
runtime.Goexit()
|
||||
}
|
||||
|
||||
if anyModified {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package action
|
||||
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/zyedidia/clipboard"
|
||||
"github.com/zyedidia/micro/internal/display"
|
||||
@@ -47,7 +47,7 @@ func (t *TermPane) Quit() {
|
||||
} else {
|
||||
screen.Screen.Fini()
|
||||
InfoBar.Close()
|
||||
os.Exit(0)
|
||||
runtime.Goexit()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user