vim-patch:9.1.1498: completion: 'complete' funcs behave different to 'omnifunc' (#34718)

Problem:  completion: Functions specified in the 'complete' option did
          not have the leader string removed when called with findstart = 0,
          unlike 'omnifunc' behavior
Solution: update behaviour and make behaviour consistent (Girish Palya)

closes: vim/vim#17636

fa16c7ab3f

Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
zeertzjq
2025-07-01 07:58:06 +08:00
committed by GitHub
parent af6b3d6fec
commit 66f02ee1fe
2 changed files with 12 additions and 16 deletions

View File

@@ -568,8 +568,8 @@ func Test_cpt_func_cursorcol()
call assert_equal(8, col('.'))
return col('.')
endif
call assert_equal("foo bar", getline(1))
call assert_equal(8, col('.'))
call assert_equal("foo ", getline(1))
call assert_equal(5, col('.'))
" return v:none
endfunc