diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-10-04 20:08:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-04 12:08:28 +0000 |
| commit | f8b50bf3b0f68af98f5012fa73f7d2425137310b (patch) | |
| tree | 45e0f83e18d24bb010b7f26a990506863863c828 /test/functional/vimscript/executable_spec.lua | |
| parent | 0fca343d641c25f631a5125801d5cb3996e29f7c (diff) | |
| download | rneovim-f8b50bf3b0f68af98f5012fa73f7d2425137310b.tar.gz rneovim-f8b50bf3b0f68af98f5012fa73f7d2425137310b.tar.bz2 rneovim-f8b50bf3b0f68af98f5012fa73f7d2425137310b.zip | |
vim-patch:9.1.1825: completion: flicker when LSP server is slow (#36020)
Problem: completion: flicker when LSP server is slow
Solution: reinsert leader text before invoking user function
(Girish Palya)
Reference:
https://github.com/girishji/vimcomplete/issues/101#issuecomment-3343063245
In insert-mode completion, the leader text is temporarily removed while
searching for candidates. When the LSP server responds slowly, the
client may call `:sleep` to wait, which triggers `out_flush()`. This
causes the deleted text to disappear briefly before being redrawn,
resulting in visible flicker.
This commit reinserts the leader text before invoking the user function,
and removes it again afterward to eliminate flicker.
closes: vim/vim#18468
https://github.com/vim/vim/commit/c51d1cc578da32939ee458e98d78b180e1235b4b
Co-authored-by: Girish Palya <girishji@gmail.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions