diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-08 20:32:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 20:32:13 -0400 |
| commit | 15ad7c0d27d3a9aa7dd100ecb4ab32956164112b (patch) | |
| tree | 3a1d872d77cfb7526d55fa450ddb9fb92dcadde4 /src/nvim/testdir/test_ins_complete.vim | |
| parent | ca6815115c79da62b845f479f0cdd765bdbfb700 (diff) | |
| parent | 2bfe2018d652e4bbf444795b2544d7d2af4e7243 (diff) | |
| download | rneovim-15ad7c0d27d3a9aa7dd100ecb4ab32956164112b.tar.gz rneovim-15ad7c0d27d3a9aa7dd100ecb4ab32956164112b.tar.bz2 rneovim-15ad7c0d27d3a9aa7dd100ecb4ab32956164112b.zip | |
Merge pull request #13074 from janlazo/vim-8.1.1717
vim-patch:8.1.{746,1717,2294,2303,2405},8.2.0007
Diffstat (limited to 'src/nvim/testdir/test_ins_complete.vim')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 1c275d5bd1..1339a9f25d 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -1,3 +1,5 @@ +source screendump.vim +source check.vim " Test for insert expansion func Test_ins_complete() @@ -338,3 +340,27 @@ func Test_compl_in_cmdwin() delcom GetInput set wildmenu& wildchar& endfunc + +func Test_pum_with_folds_two_tabs() + CheckScreendump + + let lines =<< trim END + set fdm=marker + call setline(1, ['" x {{{1', '" a some text']) + call setline(3, range(&lines)->map({_, val -> '" a' .. val})) + norm! zm + tab sp + call feedkeys('2Gzv', 'xt') + call feedkeys("0fa", 'xt') + END + + call writefile(lines, 'Xpumscript') + let buf = RunVimInTerminal('-S Xpumscript', #{rows: 10}) + call term_wait(buf, 100) + call term_sendkeys(buf, "a\<C-N>") + call VerifyScreenDump(buf, 'Test_pum_with_folds_two_tabs', {}) + + call term_sendkeys(buf, "\<Esc>") + call StopVimInTerminal(buf) + call delete('Xpumscript') +endfunc |