aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-01 07:49:05 +0800
committerGitHub <noreply@github.com>2025-02-01 07:49:05 +0800
commit9cc060218b66c600f7f50ecbec5ba6f1b3a9da82 (patch)
tree21f4329fd9c81419555dbcb56a525f1fe077c4f6 /test/old/testdir
parente71d2c817d1a2475551f58a98e411f6b39a5be3f (diff)
downloadrneovim-9cc060218b66c600f7f50ecbec5ba6f1b3a9da82.tar.gz
rneovim-9cc060218b66c600f7f50ecbec5ba6f1b3a9da82.tar.bz2
rneovim-9cc060218b66c600f7f50ecbec5ba6f1b3a9da82.zip
vim-patch:9.1.1059: completion: input text deleted with preinsert when adding leader (#32276)
Problem: completion: input text deleted with preinsert when adding leader Solution: remove compl_length and check the ptr for being equal to pattern when preinsert is active (glepnir) closes: vim/vim#16545 https://github.com/vim/vim/commit/bfb4eea7869b0118221cd145a774d74191ce6130 Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test/old/testdir')
-rw-r--r--test/old/testdir/test_ins_complete.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim
index 64a0ee3124..f276d1e719 100644
--- a/test/old/testdir/test_ins_complete.vim
+++ b/test/old/testdir/test_ins_complete.vim
@@ -3051,6 +3051,10 @@ function Test_completeopt_preinsert()
call assert_equal("hello hero", getline('.'))
call assert_equal(2, col('.'))
+ call feedkeys("Shello hero\<CR>h\<C-X>\<C-N>er", 'tx')
+ call assert_equal("hero", getline('.'))
+ call assert_equal(3, col('.'))
+
" can not work with fuzzy
set cot+=fuzzy
call feedkeys("S\<C-X>\<C-O>", 'tx')