aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-08-31 17:10:05 +0800
committerGitHub <noreply@github.com>2024-08-31 17:10:05 +0800
commita6c4487e8bfc8dc527ed64651515963e46ebeee8 (patch)
tree75e68901a8c3555f7a043a3a08fee1c0babe9824 /test
parent53af02adbad049f5fc24540cc0f38fa4f9aadf58 (diff)
downloadrneovim-a6c4487e8bfc8dc527ed64651515963e46ebeee8.tar.gz
rneovim-a6c4487e8bfc8dc527ed64651515963e46ebeee8.tar.bz2
rneovim-a6c4487e8bfc8dc527ed64651515963e46ebeee8.zip
vim-patch:9.1.0684: completion is inserted on Enter with "noselect" (#30111)
Problem: completion is inserted on Enter with "noselect" (Carman Fu) Solution: check noselect before update compl_shown_match (glepnir) fixes: vim/vim#15526 closes: vim/vim#15530 https://github.com/vim/vim/commit/753794bae8a9401903b82e5c5d1f35a106aa912a
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_ins_complete.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim
index b90c0013d9..48319f5017 100644
--- a/test/old/testdir/test_ins_complete.vim
+++ b/test/old/testdir/test_ins_complete.vim
@@ -2664,6 +2664,13 @@ func Test_complete_fuzzy_match()
call feedkeys("A\<C-X>\<C-N>\<Esc>0", 'tx!')
call assert_equal('hello help hero h', getline('.'))
+ " issue #15526
+ set completeopt=fuzzy,menuone,menu,noselect
+ call setline(1, ['Text', 'ToText', ''])
+ call cursor(2, 1)
+ call feedkeys("STe\<C-X>\<C-N>x\<CR>\<Esc>0", 'tx!')
+ call assert_equal('Tex', getline('.'))
+
" clean up
set omnifunc=
bw!