diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2025-08-19 16:14:10 +0100 |
|---|---|---|
| committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2025-08-19 20:03:05 +0100 |
| commit | 3ec63cdab848f903d5e46245b7b2acbf7d5cc829 (patch) | |
| tree | a0fbb6b36201eb6c8d4fe41c40b4d2c01defb25e /runtime/syntax/python.vim | |
| parent | 701258921ed1dcd81d51c02051bd04967088ed23 (diff) | |
fix(treesitter): run FileType autocmds in the context of `<abuf>`
Problem: many FileType autocommands assume curbuf is the same as the target
buffer; this can cause &syntax to be restored for the wrong buffer in some cases
when TSHighlighter:destroy is called.
Solution: run nvim_exec_autocmds in the context of the target buffer via
nvim_buf_call.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions
