We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb20818 commit 8cdf68bCopy full SHA for 8cdf68b
internal/action/actions.go
@@ -1894,6 +1894,13 @@ func (h *BufPane) ForceQuit() bool {
1894
// Quit this will close the current tab or view that is open
1895
func (h *BufPane) Quit() bool {
1896
if h.Buf.Modified() {
1897
+ for _, b := range buffer.OpenBuffers {
1898
+ if b != h.Buf && b.SharedBuffer == h.Buf.SharedBuffer {
1899
+ h.ForceQuit()
1900
+ return true
1901
+ }
1902
1903
+
1904
if config.GlobalSettings["autosave"].(float64) > 0 {
1905
// autosave on means we automatically save when quitting
1906
h.SaveCB("Quit", func() {
0 commit comments