comparison src/testdir/test_ins_complete.vim @ 18892:fb2d26bc8ca1 v8.2.0007

patch 8.2.0007: popup menu positioned wrong with folding in two tabs Commit: https://github.com/vim/vim/commit/09dd2bb3364cc8fb5a8f2507bc2f4ceba481db3d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 14 18:42:15 2019 +0100 patch 8.2.0007: popup menu positioned wrong with folding in two tabs Problem: Popup menu positioned wrong with folding in two tabs. Solution: Update the cursor line height. (closes https://github.com/vim/vim/issues/5353)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Dec 2019 18:45:04 +0100
parents 1348696d07cd
children a9c47c623f4a
comparison
equal deleted inserted replaced
18891:84747442f5e2 18892:fb2d26bc8ca1
1 source screendump.vim
1 source check.vim 2 source check.vim
2 3
3 " Test for insert expansion 4 " Test for insert expansion
4 func Test_ins_complete() 5 func Test_ins_complete()
5 edit test_ins_complete.vim 6 edit test_ins_complete.vim
378 379
379 let &shellslash = orig_shellslash 380 let &shellslash = orig_shellslash
380 set completeslash= 381 set completeslash=
381 endfunc 382 endfunc
382 383
384 func Test_pum_with_folds_two_tabs()
385 CheckScreendump
386
387 let lines =<< trim END
388 set fdm=marker
389 call setline(1, ['" x {{{1', '" a some text'])
390 call setline(3, range(&lines)->map({_, val -> '" a' .. val}))
391 norm! zm
392 tab sp
393 call feedkeys('2Gzv', 'xt')
394 call feedkeys("0fa", 'xt')
395 END
396
397 call writefile(lines, 'Xpumscript')
398 let buf = RunVimInTerminal('-S Xpumscript', #{rows: 10})
399 call term_wait(buf, 100)
400 call term_sendkeys(buf, "a\<C-N>")
401 call VerifyScreenDump(buf, 'Test_pum_with_folds_two_tabs', {})
402
403 call term_sendkeys(buf, "\<Esc>")
404 call StopVimInTerminal(buf)
405 call delete('Xpumscript')
406 endfunc