diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-04-30 22:12:00 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-30 22:27:27 +0800 |
| commit | 0b12f6d7bef60f644bf55d0158a11a58a21c3e71 (patch) | |
| tree | 6c8d2c7bcb8c6c84ab30492f62ce12a484c3e1b3 /src/nvim/testdir | |
| parent | db355ca4e5d1f8c3e1b749ca21336a7ebbab7317 (diff) | |
| download | rneovim-0b12f6d7bef60f644bf55d0158a11a58a21c3e71.tar.gz rneovim-0b12f6d7bef60f644bf55d0158a11a58a21c3e71.tar.bz2 rneovim-0b12f6d7bef60f644bf55d0158a11a58a21c3e71.zip | |
vim-patch:8.2.4848: local completion with mappings and simplification not working
Problem: Local completion with mappings and simplification not working.
Solution: Fix local completion <C-N>/<C-P> mappings not ignored if keys are
not simplified. (closes vim/vim#10323)
https://github.com/vim/vim/commit/ee4460306917431d0d17a7cb11c6646f4c6540b6
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 |