comparison src/testdir/test_ins_complete.vim @ 23772:f5225486d3de v8.2.2427

patch 8.2.2427: can still switch windows for 'completefunc' Commit: https://github.com/vim/vim/commit/3eb6bd9c2b36dcce471bfb543c8d5488f1dc17a4 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 29 21:47:24 2021 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 29 Jan 2021 22:00:04 +0100
parents 385d33dfb7df
children c63a2d24b7e2
comparison
equal deleted inserted replaced
23771:a61f1193e85c 23772:f5225486d3de
546 endif 546 endif
547 return ['a', 'b'] 547 return ['a', 'b']
548 endfunc 548 endfunc
549 set completefunc=CompleteFunc 549 set completefunc=CompleteFunc
550 call setline(1, ['', 'abcd', '']) 550 call setline(1, ['', 'abcd', ''])
551 call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E840:') 551 call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E578:')
552 552
553 " delete text when called for the second time 553 " delete text when called for the second time
554 func CompleteFunc2(findstart, base) 554 func CompleteFunc2(findstart, base)
555 if a:findstart == 1 555 if a:findstart == 1
556 return col('.') - 1 556 return col('.') - 1