diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-21 07:14:45 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-02-21 07:45:30 +0800 |
commit | 1fb606b2ff68b42f77aad6f9a6e00c37e1b2aab0 (patch) | |
tree | eaa6a3aa1fb7e841fa6d209c89d5d6416d1dfa2c /test/old | |
parent | 145c2e720c1eb09093aaf006fcb4396dac44620c (diff) | |
download | rneovim-1fb606b2ff68b42f77aad6f9a6e00c37e1b2aab0.tar.gz rneovim-1fb606b2ff68b42f77aad6f9a6e00c37e1b2aab0.tar.bz2 rneovim-1fb606b2ff68b42f77aad6f9a6e00c37e1b2aab0.zip |
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 <glephunter@gmail.com>
Diffstat (limited to 'test/old')
-rw-r--r-- | test/old/testdir/test_edit.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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\<c-x>\<tab>\<down>\<down>\<cr>\<esc>", 'tnix') call assert_equal([include, 'three', ''], getline(1, '$')) - call feedkeys("2ggC\<c-x>\<tab>\<down>\<down>\<down>\<C-y>\<esc>", 'tnix') + call feedkeys("2ggC\<c-x>\<tab>\<down>\<down>\<down>\<cr>\<esc>", '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\<c-x>\<c-k>\<down>\<down>\<down>\<C-Y>\<esc>", 'tnix') + call feedkeys("A\<c-x>\<c-k>\<down>\<down>\<down>\<cr>\<esc>", 'tnix') call assert_equal(['A'], getline(1, '$')) %d call setline(1, 'A') |