Files
neovim/test/functional/lua
neovim-backports[bot] 3ab06d5188 fix(api): on_detach consistently before buf_freeall autocmds (#35369)
Problem: on_detach may be called after buf_freeall and other important things,
plus its textlock restrictions are insufficient. This can cause issues such as
leaks, internal errors and crashes.

Solution: disable buffer updates in buf_freeall, before autocommands (like the
order after #35355 and when do_ecmd reloads a buffer). Don't do so in
free_buffer_stuff; it's not safe to run user code there, and buf_freeall already
runs before then; just free them to avoid leaks if buf_freeall autocommands
registered more for some reason.

(cherry picked from commit 2211953266)

Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
2025-08-17 15:39:32 -07:00
..
2024-04-23 18:17:04 +02:00
2025-01-09 09:26:45 -08:00
2025-03-14 09:09:16 +00:00
2024-04-23 18:17:04 +02:00
2025-02-26 23:06:22 +01:00
2025-03-02 14:27:52 -08:00