mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
Problem: CompleteDone fires with reason="discard" even when the candidate text was inserted and left in the buffer, because reason was determined solely by the terminating keycode (Ctrl-Y). Solution: Check compl_used_match to detect whether inserted text remains in the buffer, and set reason="accept" accordingly.