diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-23 22:04:46 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-24 00:09:28 -0400 |
| commit | ed2d651b504012d89f00ea89814cfcb15a0faf3f (patch) | |
| tree | a77d9eb185abffd65894873b4c798d23b549ff58 /src/nvim/testdir/test_ins_complete.vim | |
| parent | 162bc62f56f85fb6c88b48aab2e3fc264f1612bb (diff) | |
| download | rneovim-ed2d651b504012d89f00ea89814cfcb15a0faf3f.tar.gz rneovim-ed2d651b504012d89f00ea89814cfcb15a0faf3f.tar.bz2 rneovim-ed2d651b504012d89f00ea89814cfcb15a0faf3f.zip | |
vim-patch:8.0.1482: using feedkeys() does not work to test completion
Problem: Using feedkeys() does not work to test Insert mode completion.
(Lifepillar)
Solution: Do not check for typed keys when executing :normal or feedkeys().
Fix thesaurus completion not working when 'complete' is empty.
https://github.com/vim/vim/commit/02ae9b4a93deea4993d7abe20485f91f1cce5e36
Diffstat (limited to 'src/nvim/testdir/test_ins_complete.vim')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index d3429617d0..071e82579e 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -249,3 +249,14 @@ func Test_omni_dash() delfunc Omni set omnifunc= endfunc + +" Check that when using feedkeys() typeahead does not interrupt searching for +" completions. +func Test_compl_feedkeys() + new + set completeopt=menuone,noselect + call feedkeys("ajump ju\<C-X>\<C-N>\<C-P>\<ESC>", "tx") + call assert_equal("jump jump", getline(1)) + bwipe! + set completeopt& +endfunc |