forked from aniani/vim
patch 8.2.2427: can still switch windows for 'completefunc'
Problem: Can still switch windows for 'completefunc'. Solution: Also disallow switching windows for other completions.
This commit is contained in:
@@ -548,7 +548,7 @@ func Test_completefunc_error()
|
||||
endfunc
|
||||
set completefunc=CompleteFunc
|
||||
call setline(1, ['', 'abcd', ''])
|
||||
call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E840:')
|
||||
call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E578:')
|
||||
|
||||
" delete text when called for the second time
|
||||
func CompleteFunc2(findstart, base)
|
||||
|
||||
Reference in New Issue
Block a user