diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-29 21:47:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-29 21:47:24 +0100 |
commit | 3eb6bd9c2b36dcce471bfb543c8d5488f1dc17a4 (patch) | |
tree | 2752a07b909b085c3a23eb3810155254e1e0b546 /src/testdir/test_popup.vim | |
parent | 28976e2accf11591c60e8a658a9e03544f0408b2 (diff) |
patch 8.2.2427: can still switch windows for 'completefunc'v8.2.2427
Problem: Can still switch windows for 'completefunc'.
Solution: Also disallow switching windows for other completions.
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 2d0625bc09..c8f8820af4 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -367,11 +367,9 @@ func Test_completefunc_opens_new_window_two() setlocal completefunc=DummyCompleteTwo call setline(1, 'two') /^two - call assert_fails('call feedkeys("A\<C-X>\<C-U>\<C-N>\<Esc>", "x")', 'E839:') - call assert_notequal(winid, win_getid()) - q! + call assert_fails('call feedkeys("A\<C-X>\<C-U>\<C-N>\<Esc>", "x")', 'E565:') call assert_equal(winid, win_getid()) - call assert_equal('two', getline(1)) + call assert_equal('twodef', getline(1)) q! endfunc |