From 3e882bf81c5f0761b98d29a6c986026d5962e5f7 Mon Sep 17 00:00:00 2001 From: glepnir Date: Sun, 2 Feb 2025 18:02:25 +0800 Subject: vim-patch:9.1.1069: preinsert text completions not deleted with / (#32296) Problem: preinsert text completions not deleted with / (ddad431, after v9.1.1059) Solution: handle or specifically and clear the completion (glepnir) fixes: vim/vim#16557 closes: vim/vim#16565 https://github.com/vim/vim/commit/001c26cd6194fba2bfccb06dec30fdc9e1410e62 --- test/old/testdir/test_ins_complete.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim index f276d1e719..2fb1715634 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -3042,6 +3042,14 @@ function Test_completeopt_preinsert() call assert_equal("fo ", getline('.')) call assert_equal(3, col('.')) + call feedkeys("She\\\", 'tx') + call assert_equal("", getline('.')) + call assert_equal(1, col('.')) + + call feedkeys("She\\\", 'tx') + call assert_equal("", getline('.')) + call assert_equal(1, col('.')) + " whole line call feedkeys("Shello hero\\\", 'tx') call assert_equal("hello hero", getline('.')) -- cgit