aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2025-08-17 03:06:44 +0100
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2025-08-17 22:32:53 +0100
commit2211953266f7d01462e38b7f885bdc6a0afb62a0 (patch)
tree1038535e81abb0dacd12631a224bcacfee20cbf7 /runtime/syntax/python.vim
parentd8ed43c6a70899117dc07a807d14a10b4dcc833c (diff)
downloadrneovim-2211953266f7d01462e38b7f885bdc6a0afb62a0.tar.gz
rneovim-2211953266f7d01462e38b7f885bdc6a0afb62a0.tar.bz2
rneovim-2211953266f7d01462e38b7f885bdc6a0afb62a0.zip
fix(api): on_detach consistently before buf_freeall autocmds
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. Fixes #28084 Fixes #33967 Fixes #35116
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions