diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-04-30 23:09:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-30 23:09:58 +0800 |
| commit | 338b9032194a4bc4c98439eb00f65a8ec86609f2 (patch) | |
| tree | 621eadfc5e5baaf5f51273e723999f7489860e2c /src/nvim/testdir | |
| parent | 3c23100130725bb79c04e933c505bbeda96fb3bb (diff) | |
| parent | 0b12f6d7bef60f644bf55d0158a11a58a21c3e71 (diff) | |
| download | rneovim-338b9032194a4bc4c98439eb00f65a8ec86609f2.tar.gz rneovim-338b9032194a4bc4c98439eb00f65a8ec86609f2.tar.bz2 rneovim-338b9032194a4bc4c98439eb00f65a8ec86609f2.zip | |
Merge pull request #18323 from zeertzjq/vim-8.1.2191
vim-patch:8.1.2191,8.2.4848: mappings for completion keys not ignored
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_popup.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index eb367cfe5c..9a31f61582 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -325,6 +325,21 @@ func Test_compl_vim_cmds_after_register_expr() bwipe! endfunc +func Test_compl_ignore_mappings() + call setline(1, ['foo', 'bar', 'baz', 'foobar']) + inoremap <C-P> (C-P) + inoremap <C-N> (C-N) + normal! G + call feedkeys("o\<C-X>\<C-N>\<C-N>\<C-N>\<C-P>\<C-N>\<C-Y>", 'tx') + call assert_equal('baz', getline('.')) + " Also test with unsimplified keys + call feedkeys("o\<C-X>\<*C-N>\<*C-N>\<*C-N>\<*C-P>\<*C-N>\<C-Y>", 'tx') + call assert_equal('baz', getline('.')) + iunmap <C-P> + iunmap <C-N> + bwipe! +endfunc + func DummyCompleteOne(findstart, base) if a:findstart return 0 |