aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-16 17:30:15 +0800
committerGitHub <noreply@github.com>2024-06-16 17:30:15 +0800
commit57c377dfb203e8c7b2e736669f4ba986cc2ebbbd (patch)
treeab713442605e09ce07d1ebb53a6c31a269b8ec7f
parentaa319da4024a77b0f7c40e08c6f5d5b512a7f899 (diff)
downloadrneovim-57c377dfb203e8c7b2e736669f4ba986cc2ebbbd.tar.gz
rneovim-57c377dfb203e8c7b2e736669f4ba986cc2ebbbd.tar.bz2
rneovim-57c377dfb203e8c7b2e736669f4ba986cc2ebbbd.zip
vim-patch:9.1.0493: Test for patch 9.1.0489 doesn't fail without the fix (#29366)
Problem: Test for patch 9.1.0489 doesn't fail without the fix. Solution: Use "!" flag of feedkeys() so that ex_normal_busy is not set and ins_compl_check_keys() is not skipped (zeertzjq). closes: vim/vim#15018 https://github.com/vim/vim/commit/acc87469415ba10283e5a53a8a11424f4867bbcf
-rw-r--r--test/old/testdir/test_ins_complete.vim9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim
index 96e37bd673..0f974ebb5b 100644
--- a/test/old/testdir/test_ins_complete.vim
+++ b/test/old/testdir/test_ins_complete.vim
@@ -2634,14 +2634,17 @@ func Test_complete_fuzzy_match()
call feedkeys("S\<C-x>\<C-o>fb\<C-n>", 'tx')
call assert_equal('fooBaz', g:word)
- " avoid break default completion behavior
+ " avoid breaking default completion behavior
set completeopt=fuzzy,menu
call setline(1, ['hello help hero h'])
- exe "norm! A\<C-X>\<C-N>"
+ " Use "!" flag of feedkeys() so that ex_normal_busy is not set and
+ " ins_compl_check_keys() is not skipped.
+ " Add a "0" after the <Esc> to avoid waiting for an escape sequence.
+ call feedkeys("A\<C-X>\<C-N>\<Esc>0", 'tx!')
call assert_equal('hello help hero hello', getline('.'))
set completeopt+=noinsert
call setline(1, ['hello help hero h'])
- exe "norm! A\<C-X>\<C-N>"
+ call feedkeys("A\<C-X>\<C-N>\<Esc>0", 'tx!')
call assert_equal('hello help hero h', getline('.'))
" clean up