diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-06-06 06:26:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-06 10:26:12 +0000 |
| commit | ec7dab077bf6bf53794f2bc42010c977687094a6 (patch) | |
| tree | 00065e942b74b1abcb5c64cdc474978fc0ed5881 /test/functional/vimscript/executable_spec.lua | |
| parent | 9bdbc176ebb48b649e7c9cdaf9ea286871e345c9 (diff) | |
| download | rneovim-ec7dab077bf6bf53794f2bc42010c977687094a6.tar.gz rneovim-ec7dab077bf6bf53794f2bc42010c977687094a6.tar.bz2 rneovim-ec7dab077bf6bf53794f2bc42010c977687094a6.zip | |
fix(vim.hl): range(0,…) highlight not cleared after buffer-switch #40130
Problem:
When `vim.hl.range(0, …, { timeout = N })` is called, the deferred
`range_hl_clear` captures `buf=0`, which resolves to an arbitrary
"current buffer" at timeout. This may cause a stale highlight that never
gets cleared.
Solution:
Resolve `buf=0` explicitly, before `range_hl_clear` captures it.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions