]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2039: completion shows current word after completion restart v9.0.2039
authornwounkn <nwounkn@gmail.com>
Tue, 17 Oct 2023 09:05:38 +0000 (11:05 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 17 Oct 2023 09:05:38 +0000 (11:05 +0200)
commit2e3cd52fa02b1a208c97992b1bca3b04f7be66d4
tree0d1208be07ee65407868e05ce4465b999a560e73
parentf3eac695bfe3453fe2a8b980601c55835406f14b
patch 9.0.2039: completion shows current word after completion restart

Problem:  completion shows current word after completion restart
Solution: remove the word being completed after completion restart

The word being completed is shown in a completion list after completion
restart, because it isn't removed from the current buffer before
searching for matches.

Also adjust `Test_complete_add_onechar` to match the new behavior.

closes: #13349

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: nwounkn <nwounkn@gmail.com>
src/insexpand.c
src/testdir/test_ins_complete.vim
src/version.c