diff options
| author | Oleh Volynets <saggot91@gmail.com> | 2026-06-15 17:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-15 11:11:57 -0400 |
| commit | b55a8683091137142fe35469d922605266de6dda (patch) | |
| tree | 815214220830e743eff5f6523c1771e0f67a4d3a /test/functional/vimscript/executable_spec.lua | |
| parent | 145b20eb89c902a6b1755c194a035411381c4a36 (diff) | |
| download | rneovim-b55a8683091137142fe35469d922605266de6dda.tar.gz rneovim-b55a8683091137142fe35469d922605266de6dda.tar.bz2 rneovim-b55a8683091137142fe35469d922605266de6dda.zip | |
feat(diagnostic): debounce current-line render #39542
Problem: vim.diagnostic.Opts.VirtualLines.current_line and
vim.diagnostic.Opts.VirtualText.current_line cause redraw
on every CursorMoved event that makes the text jump
uncomfortably with rapid cursor movement.
Solution: `current_line` state is applied only on CursorHold,
while still being cleared on CursorMoved making it so that
until the cursor has stopped on a line, its diagnostic
looks like cursor is not on the line preventing flicker.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions