mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
feat(aucmd_win): allow crazy things with hidden buffers (#21250)
Problem: Crash when doing crazy things with hidden buffers. Solution: Dynamically allocate the list of autocommand windows.
This commit is contained in:
@@ -3122,6 +3122,8 @@ void win_free_all(void)
|
||||
}
|
||||
}
|
||||
|
||||
kv_destroy(aucmd_win_vec);
|
||||
|
||||
while (firstwin != NULL) {
|
||||
int dummy;
|
||||
(void)win_free_mem(firstwin, &dummy, NULL);
|
||||
|
Reference in New Issue
Block a user