diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-29 21:07:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-29 21:07:07 +0100 |
commit | 28976e2accf11591c60e8a658a9e03544f0408b2 (patch) | |
tree | 5e0ad5064936b05fd30e1eb7c946d8afeaf848b3 /src/testdir/test_popup.vim | |
parent | df2c2988bbaecd28b0fbec8d64327b1bbb005e19 (diff) |
patch 8.2.2426: allowing 'completefunc' to switch windows causes troublev8.2.2426
Problem: Allowing 'completefunc' to switch windows causes trouble.
Solution: use "textwinlock" instead of "textlock".
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 9175ff1f26..2d0625bc09 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -342,7 +342,7 @@ func Test_completefunc_opens_new_window_one() setlocal completefunc=DummyCompleteOne call setline(1, 'one') /^one - call assert_fails('call feedkeys("A\<C-X>\<C-U>\<C-N>\<Esc>", "x")', 'E578:') + call assert_fails('call feedkeys("A\<C-X>\<C-U>\<C-N>\<Esc>", "x")', 'E565:') call assert_equal(winid, win_getid()) call assert_equal('onedef', getline(1)) q! @@ -642,8 +642,8 @@ func Test_complete_func_mess() set completefunc=MessComplete new call setline(1, 'Ju') - call feedkeys("A\<c-x>\<c-u>/\<esc>", 'tx') - call assert_equal('Oct/Oct', getline(1)) + call assert_fails('call feedkeys("A\<c-x>\<c-u>/\<esc>", "tx")', 'E578:') + call assert_equal('Jan/', getline(1)) bwipe! set completefunc= endfunc |