From 1fb606b2ff68b42f77aad6f9a6e00c37e1b2aab0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 21 Feb 2025 07:14:45 +0800 Subject: vim-patch:9.1.1126: patch 9.1.1121 used a wrong way to handle enter Problem: patch 9.1.1121 used a wrong way to handle enter Solution: compl_enter_selects also needs to consider the selected item in ins_compl_new_leader() (glepnir) closes: vim/vim#16673 https://github.com/vim/vim/commit/44180416981000ad0bc5db4686889892e7a05cdd Co-authored-by: glepnir --- test/old/testdir/test_edit.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/old/testdir/test_edit.vim b/test/old/testdir/test_edit.vim index 5f1a12e33d..bfb1790a9b 100644 --- a/test/old/testdir/test_edit.vim +++ b/test/old/testdir/test_edit.vim @@ -601,7 +601,7 @@ func Test_edit_CTRL_I() call assert_equal([include, 'two', ''], getline(1, '$')) call feedkeys("2ggC\\\\\\", 'tnix') call assert_equal([include, 'three', ''], getline(1, '$')) - call feedkeys("2ggC\\\\\\\", 'tnix') + call feedkeys("2ggC\\\\\\\", 'tnix') call assert_equal([include, '', ''], getline(1, '$')) bw! endfunc @@ -629,7 +629,7 @@ func Test_edit_CTRL_K() %d call setline(1, 'A') call cursor(1, 1) - call feedkeys("A\\\\\\\", 'tnix') + call feedkeys("A\\\\\\\", 'tnix') call assert_equal(['A'], getline(1, '$')) %d call setline(1, 'A') -- cgit