mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-15 21:37:09 +09:00
actions: Fix the iteration over a slice under modification in QuitAll() (#2898)
This commit is contained in:
@@ -1582,9 +1582,7 @@ func (h *BufPane) QuitAll() bool {
|
||||
}
|
||||
|
||||
quit := func() {
|
||||
for _, b := range buffer.OpenBuffers {
|
||||
b.Close()
|
||||
}
|
||||
buffer.CloseOpenBuffers()
|
||||
screen.Screen.Fini()
|
||||
InfoBar.Close()
|
||||
runtime.Goexit()
|
||||
|
||||
Reference in New Issue
Block a user