diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-05-20 03:48:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-20 03:48:55 -0400 |
| commit | 5181984db990111c76d7d7bceb3d7acba7da4406 (patch) | |
| tree | 8bba2371c93af0e3459723f2a73abceb7368a837 /test/functional/lua/luaeval_spec.lua | |
| parent | ea8f1463ddd18cb95bb960c684aab6cd3cb4799b (diff) | |
| download | rneovim-5181984db990111c76d7d7bceb3d7acba7da4406.tar.gz rneovim-5181984db990111c76d7d7bceb3d7acba7da4406.tar.bz2 rneovim-5181984db990111c76d7d7bceb3d7acba7da4406.zip | |
fix(api): nvim_exec_autocmds({buf=x}) runs in buffer context #39061
Problem: `nvim_exec_autocmds({ buf = ... })` matches the target buffer, but callbacks and modelines run with the caller buffer current rather than the target buffer.
Solution: Execute the buffered path in prepared target-buffer context and restore the caller afterward.
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions