Mercurial > vim
diff src/testdir/test_ins_complete.vim @ 13215:ae5f855a64be v8.0.1482
patch 8.0.1482: using feedkeys() does not work to test completion
commit https://github.com/vim/vim/commit/02ae9b4a93deea4993d7abe20485f91f1cce5e36
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 9 15:06:02 2018 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Feb 2018 15:15:06 +0100 |
parents | cb9b2774f21f |
children | e0dcfd3dbb52 |
line wrap: on
line diff
--- 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