aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-07-01 17:00:08 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-07-02 03:57:56 +0800
commit14f2a86cd6bb589c29b2f78bc39e4994e128e8c6 (patch)
treeb7ddea1f566badfcd2556e23efaf79af713199d2 /test/functional/vimscript/executable_spec.lua
parent7a4186e1d564162dbaa5e9ebfeec04e353f2e0bc (diff)
downloadrneovim-14f2a86cd6bb589c29b2f78bc39e4994e128e8c6.tar.gz
rneovim-14f2a86cd6bb589c29b2f78bc39e4994e128e8c6.tar.bz2
rneovim-14f2a86cd6bb589c29b2f78bc39e4994e128e8c6.zip
vim-patch:9.2.0739: completion: 'autocompletedelay' blocks the main loop and drops autocommands
Problem: With a non-zero 'autocompletedelay', Insert-mode autocommands (TextChangedI, TextChangedP, CursorMovedI) are delayed, and while typing faster than the delay they are dropped entirely, because the delay blocks the main loop. Solution: Make 'autocompletedelay' non-blocking: instead of busy-waiting before showing the popup menu, defer it with an input-wait timeout (K_COMPLETE_DELAY) modeled on CursorHoldI, so typing stays responsive and the Insert-mode autocommands fire normally. The delay timer coexists with 'updatetime': the main loop waits for the sooner of the two and triggers the event whose deadline was reached, so 'autocompletedelay' no longer shadows CursorHold timing. Changing the completion leader, for example with Backspace, updates the visible popup immediately like a zero delay; only the first popup is deferred. Update the 'autocompletedelay' screendumps for the non-blocking display. One test opened the menu with CTRL-N right after the delay expired and could race with the deferred popup, so it now waits a little longer than the delay before sending the key. fixes: vim/vim#20591 closes: vim/vim#20598 https://github.com/vim/vim/commit/8ce43ea4e3cb315f566bcd9048c254ba58042964 Also include some insexpand.c and ui.c changes from patch 9.2.0750. Co-authored-by: Hirohito Higashi <h.east.727@gmail.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions