diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-09 15:06:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-09 15:06:02 +0100 |
commit | 02ae9b4a93deea4993d7abe20485f91f1cce5e36 (patch) | |
tree | c6a08def7fcc005f500d2914a09b3fa3638d1143 /src/testdir/test_ins_complete.vim | |
parent | 1567558b20575e1b17c3808c6bd622b0b4810e36 (diff) |
patch 8.0.1482: using feedkeys() does not work to test completionv8.0.1482
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.
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r-- | src/testdir/test_ins_complete.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index e57782fb87..652b1d9e42 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -116,3 +116,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 |