diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-01-27 08:31:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-27 08:31:17 +0100 |
| commit | f1b91fcdbdf5f2e639aed8155c6d668c0b33ec6c (patch) | |
| tree | f4463da4ffbf6e7ef7819fe543ea69077f840384 /src/nvim/testdir | |
| parent | 00915864f72e0052ecdb40629c838c622c7720a0 (diff) | |
| parent | 8e945c2524f26e019959e82072e783cdaa694818 (diff) | |
| download | rneovim-f1b91fcdbdf5f2e639aed8155c6d668c0b33ec6c.tar.gz rneovim-f1b91fcdbdf5f2e639aed8155c6d668c0b33ec6c.tar.bz2 rneovim-f1b91fcdbdf5f2e639aed8155c6d668c0b33ec6c.zip | |
Merge pull request #17102 from zeertzjq/vim-8.2.1762
vim-patch:8.2.1762: when a timer uses :stopinsert completion isn't stopped
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index ce75799551..6803271c03 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -445,6 +445,28 @@ func Test_issue_7021() set completeslash= endfunc +func Test_pum_stopped_by_timer() + CheckScreendump + + let lines =<< trim END + call setline(1, ['hello', 'hullo', 'heeee', '']) + func StartCompl() + call timer_start(100, { -> execute('stopinsert') }) + call feedkeys("Gah\<C-N>") + endfunc + END + + call writefile(lines, 'Xpumscript') + let buf = RunVimInTerminal('-S Xpumscript', #{rows: 12}) + call term_sendkeys(buf, ":call StartCompl()\<CR>") + call TermWait(buf, 200) + call term_sendkeys(buf, "k") + call VerifyScreenDump(buf, 'Test_pum_stopped_by_timer', {}) + + call StopVimInTerminal(buf) + call delete('Xpumscript') +endfunc + func Test_pum_with_folds_two_tabs() CheckScreendump |