diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-03-19 00:11:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-18 20:11:59 -0400 |
| commit | 6f12663de56b5c363e5abefc3ddbe1fd3bbc7989 (patch) | |
| tree | 401a44631b1d331315c87fe42f7a16eac88da64e /runtime/lua/vim/provider/python.lua | |
| parent | 19715e6e8a7145c8d4da39c9ebc2b09da5be74e7 (diff) | |
fix(api): nvim_get_option_value FileType autocmd handling #37414
Problem:
nvim_get_option_value with "filetype" set silently returns incorrect
defaults if autocommands are blocked, like when they're already running.
Solution:
Allow its FileType autocommands to nest: `do_filetype_autocmd(force=true)`.
Also error if executing them fails, rather than silently return wrong defaults.
Endless nesting from misbehaving scripts should be prevented by the recursion
limit in apply_autocmds_group, which is 10.
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions
