diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-05-05 06:58:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-05 06:58:20 +0800 |
| commit | 6798f1fab0244ee535675fa9100945eec074e6e4 (patch) | |
| tree | d70f31f988509ac0679a50b086bf316f5d481371 /src/nvim/testdir | |
| parent | e6c71574a07662c44b83c6cb07bf9b61bc06e136 (diff) | |
| download | rneovim-6798f1fab0244ee535675fa9100945eec074e6e4.tar.gz rneovim-6798f1fab0244ee535675fa9100945eec074e6e4.tar.bz2 rneovim-6798f1fab0244ee535675fa9100945eec074e6e4.zip | |
vim-patch:8.2.4865: :startinsert right after :stopinsert may not work (#18418)
Problem: :startinsert right after :stopinsert does not work when popup menu
is still visible.
Solution: Use ins_compl_active() instead of pum_visible(). (closes vim/vim#10352)
https://github.com/vim/vim/commit/cd5dbad184e8235beb13dcd8a22302da09db9766
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 24eaf9e8b1..90b57323af 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -516,6 +516,15 @@ func Test_pum_stopped_by_timer() call delete('Xpumscript') endfunc +func Test_complete_stopinsert_startinsert() + nnoremap <F2> <Cmd>startinsert<CR> + inoremap <F2> <Cmd>stopinsert<CR> + " This just checks if this causes an error + call feedkeys("i\<C-X>\<C-N>\<F2>\<F2>", 'x') + nunmap <F2> + iunmap <F2> +endfunc + func Test_pum_with_folds_two_tabs() CheckScreendump |