mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user