actions: Fix the iteration over a slice under modification in QuitAll() (#2898)

This commit is contained in:
Jöran Karl
2023-08-31 13:53:33 +02:00
committed by GitHub
parent ceaa143c62
commit a78c2c3509
2 changed files with 10 additions and 3 deletions

View File

@@ -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()