Lines Matching refs:buf
23 let buf = RunVimInTerminal('-S XtestPopup', #{rows: 10})
24 call VerifyScreenDump(buf, 'Test_popupwin_01', {})
27 call term_sendkeys(buf, ":tabnew\<CR>")
28 call term_sendkeys(buf, ":let popupwin = popup_create(["
34 call VerifyScreenDump(buf, 'Test_popupwin_02', {})
37 call term_sendkeys(buf, "gt")
38 call VerifyScreenDump(buf, 'Test_popupwin_03', {})
41 call term_sendkeys(buf, ":quit!\<CR>")
42 call VerifyScreenDump(buf, 'Test_popupwin_04', {})
45 call term_sendkeys(buf, ":let cols = &columns\<CR>")
46 call term_sendkeys(buf, ":set columns=12\<CR>")
47 call VerifyScreenDump(buf, 'Test_popupwin_04a', {})
48 call term_sendkeys(buf, ":let &columns = cols\<CR>")
51 …call term_sendkeys(buf, ":call popup_move(popupwin, #{minwidth: 15, maxwidth: 25, minheight: 3, ma…
52 call term_sendkeys(buf, ":redraw\<CR>")
53 call VerifyScreenDump(buf, 'Test_popupwin_05', {})
56 …call term_sendkeys(buf, ":call setbufline(winbufnr(popupwin), 3, 'this line will not fit here')\<C…
57 call term_sendkeys(buf, ":redraw\<CR>")
58 call VerifyScreenDump(buf, 'Test_popupwin_06', {})
61 call term_sendkeys(buf, ":set cmdheight=2\<CR>")
62 call term_sendkeys(buf, ":call popup_move(popupwin, #{line: 7, col: 55})\<CR>")
63 call term_sendkeys(buf, ":\<CR>")
64 call VerifyScreenDump(buf, 'Test_popupwin_07', {})
67 call term_sendkeys(buf, "axxx\<Esc>")
68 call TermWait(buf)
69 call term_sendkeys(buf, "0")
70 call TermWait(buf)
71 call term_sendkeys(buf, ":call popup_clear()\<CR>")
72 call VerifyScreenDump(buf, 'Test_popupwin_08', {})
75 call StopVimInTerminal(buf)
99 let buf = RunVimInTerminal('-S XtestPopupBorder', #{rows: 15})
100 call VerifyScreenDump(buf, 'Test_popupwin_2' .. iter, {})
102 call StopVimInTerminal(buf)
124 let buf = RunVimInTerminal('-S XtestPopupBorder', #{rows: 12})
125 call VerifyScreenDump(buf, 'Test_popupwin_22', {})
128 …call term_sendkeys(buf, ":call popup_setoptions(winid, #{borderchars: ['a', 'b', 'c', 'd', 'e', 'f…
129 call VerifyScreenDump(buf, 'Test_popupwin_23', {})
133 call term_sendkeys(buf, ":call MultiByte()\<CR>")
134 call VerifyScreenDump(buf, 'Test_popupwin_24', {})
137 call StopVimInTerminal(buf)
225 let buf = RunVimInTerminal('-S XtestPopup', #{rows: 10})
226 call VerifyScreenDump(buf, 'Test_popupwin_10', {})
229 call StopVimInTerminal(buf)
249 let buf = RunVimInTerminal('-S XtestPopup', #{rows: 10})
250 call VerifyScreenDump(buf, 'Test_popupwin_11', {})
253 call StopVimInTerminal(buf)
275 let buf = RunVimInTerminal('-S XtestPopupMatches', #{rows: 10})
276 call VerifyScreenDump(buf, 'Test_popupwin_matches', {})
279 call StopVimInTerminal(buf)
331 let buf = RunVimInTerminal('-S XtestPopupCorners', #{rows: 12})
332 call VerifyScreenDump(buf, 'Test_popupwin_corners', {})
335 call StopVimInTerminal(buf)
423 let buf = RunVimInTerminal('-S XtestPopupNospace', #{rows: 12})
424 call VerifyScreenDump(buf, 'Test_popupwin_nospace', {})
427 call StopVimInTerminal(buf)
442 let buf = RunVimInTerminal('-S XtestPopupFirstline', #{rows: 10})
443 call VerifyScreenDump(buf, 'Test_popupwin_firstline_1', {})
445 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: -1})\<CR>")
446 call term_sendkeys(buf, ":\<CR>")
447 call VerifyScreenDump(buf, 'Test_popupwin_firstline_2', {})
450 call StopVimInTerminal(buf)
579 let buf = RunVimInTerminal('-S XtestPopupDrag', #{rows: 10})
580 call VerifyScreenDump(buf, 'Test_popupwin_drag_01', {})
582 call term_sendkeys(buf, ":call Dragit()\<CR>")
583 call VerifyScreenDump(buf, 'Test_popupwin_drag_02', {})
585 call term_sendkeys(buf, ":call Resize()\<CR>")
586 call VerifyScreenDump(buf, 'Test_popupwin_drag_03', {})
589 call StopVimInTerminal(buf)
633 let buf = RunVimInTerminal('-S XtestPopupTerm', #{rows: 16})
634 call VerifyScreenDump(buf, 'Test_popupwin_term_01', {})
636 call term_sendkeys(buf, ":call DragitLeft()\<CR>")
637 call VerifyScreenDump(buf, 'Test_popupwin_term_02', {})
639 call term_sendkeys(buf, ":call DragitDown()\<CR>")
640 call VerifyScreenDump(buf, 'Test_popupwin_term_03', {})
642 call term_sendkeys(buf, ":call DragitDownLeft()\<CR>")
643 call VerifyScreenDump(buf, 'Test_popupwin_term_04', {})
646 call StopVimInTerminal(buf)
701 let buf = RunVimInTerminal('-S XtestPopupClose', #{rows: 10})
702 call VerifyScreenDump(buf, 'Test_popupwin_close_01', {})
704 call term_sendkeys(buf, ":call CloseWithX()\<CR>")
705 call VerifyScreenDump(buf, 'Test_popupwin_close_02', {})
707 call term_sendkeys(buf, ":call CloseWithClick()\<CR>")
708 call VerifyScreenDump(buf, 'Test_popupwin_close_03', {})
710 call term_sendkeys(buf, ":call CreateWithMenuFilter()\<CR>")
711 call VerifyScreenDump(buf, 'Test_popupwin_close_04', {})
715 call term_sendkeys(buf, "\<Esc>[<0;47;1M")
716 call VerifyScreenDump(buf, 'Test_popupwin_close_05', {})
719 call StopVimInTerminal(buf)
743 let buf = RunVimInTerminal('-S XtestPopupWrap', #{rows: 10})
744 call VerifyScreenDump(buf, 'Test_popupwin_wrap_1', {})
746 call term_sendkeys(buf, "jj")
747 call VerifyScreenDump(buf, 'Test_popupwin_wrap_2', {})
750 call term_sendkeys(buf, "\<Esc>")
751 call StopVimInTerminal(buf)
798 let buf = RunVimInTerminal('-S XtestPopupMask', #{rows: 13})
799 call VerifyScreenDump(buf, 'Test_popupwin_mask_1', {})
801 call term_sendkeys(buf, ":call popup_move(winid, #{col: 11, line: 2})\<CR>")
802 call term_sendkeys(buf, ":call popup_move(winidb, #{col: 12})\<CR>")
803 call term_sendkeys(buf, ":\<CR>")
804 call VerifyScreenDump(buf, 'Test_popupwin_mask_2', {})
806 call term_sendkeys(buf, ":call popup_move(winid, #{col: 65, line: 2})\<CR>")
807 call term_sendkeys(buf, ":call popup_move(winidb, #{col: 63})\<CR>")
808 call term_sendkeys(buf, ":\<CR>")
809 call VerifyScreenDump(buf, 'Test_popupwin_mask_3', {})
811 call term_sendkeys(buf, ":call popup_move(winid, #{pos: 'topright', col: 12, line: 2})\<CR>")
812 call term_sendkeys(buf, ":call popup_move(winidb, #{pos: 'topright', col: 12})\<CR>")
813 call term_sendkeys(buf, ":\<CR>")
814 call VerifyScreenDump(buf, 'Test_popupwin_mask_4', {})
816 call term_sendkeys(buf, ":call popup_move(winid, #{pos: 'topright', col: 12, line: 11})\<CR>")
817 call term_sendkeys(buf, ":call popup_move(winidb, #{pos: 'topleft', col: 42, line: 11})\<CR>")
818 call term_sendkeys(buf, ":\<CR>")
819 call VerifyScreenDump(buf, 'Test_popupwin_mask_5', {})
822 call StopVimInTerminal(buf)
871 let buf = RunVimInTerminal('-S XtestPopupSelect', #{rows: 10})
872 call term_sendkeys(buf, ":call Select1()\<CR>")
873 call VerifyScreenDump(buf, 'Test_popupwin_select_01', {})
875 call term_sendkeys(buf, ":call popup_close(winid)\<CR>")
876 call term_sendkeys(buf, "\"*p")
878 call term_sendkeys(buf, ":\<esc>")
880 call VerifyScreenDump(buf, 'Test_popupwin_select_02', {})
883 call StopVimInTerminal(buf)
1036 call assert_fails('call win_execute(winid, "buf")', 'E994:')
1062 let buf = RunVimInTerminal('-S XtestPopup', #{rows: 10})
1063 call VerifyScreenDump(buf, 'Test_popupwin_wrap', {})
1066 call StopVimInTerminal(buf)
1080 let buf = RunVimInTerminal('-S XtestPopup', #{rows: 10})
1081 call VerifyScreenDump(buf, 'Test_popupwin_nowrap', {})
1084 call StopVimInTerminal(buf)
1100 let buf = RunVimInTerminal('-S XtestPopupShowbreak', #{rows: 10})
1101 call VerifyScreenDump(buf, 'Test_popupwin_showbreak', {})
1104 call term_sendkeys(buf, "y")
1105 call StopVimInTerminal(buf)
1475 let buf = RunVimInTerminal('-S XtestPopupAtcursorPos', #{rows: 12})
1476 call VerifyScreenDump(buf, 'Test_popupwin_atcursor_pos', {})
1479 call StopVimInTerminal(buf)
1512 let buf = RunVimInTerminal('-S XtestPopupBeval', #{rows: 10})
1513 call TermWait(buf, 50)
1514 call term_sendkeys(buf, 'j')
1515 call term_sendkeys(buf, ":call Hover()\<CR>")
1516 call VerifyScreenDump(buf, 'Test_popupwin_beval_1', {})
1518 call term_sendkeys(buf, ":call MoveOntoPopup()\<CR>")
1519 call VerifyScreenDump(buf, 'Test_popupwin_beval_2', {})
1521 call term_sendkeys(buf, ":call MoveAway()\<CR>")
1522 call VerifyScreenDump(buf, 'Test_popupwin_beval_3', {})
1525 call StopVimInTerminal(buf)
1593 let buf = RunVimInTerminal('-S XtestPopupNormal', #{rows: 10})
1594 call TermWait(buf, 100)
1595 call VerifyScreenDump(buf, 'Test_popupwin_normal_cmd', {})
1597 call StopVimInTerminal(buf)
1615 let buf = RunVimInTerminal('-S XtestPopupWinExecute', #{rows: 14})
1617 call term_sendkeys(buf, ":call win_execute(g:id, ['normal 17Gzz'])\<CR>")
1618 call term_sendkeys(buf, ":\<CR>")
1620 call VerifyScreenDump(buf, 'Test_popupwin_win_execute_cursorline', {})
1622 call StopVimInTerminal(buf)
1642 let buf = RunVimInTerminal('-S XtestPopupWinSetFirstline', #{rows: 16})
1644 call VerifyScreenDump(buf, 'Test_popupwin_set_firstline_1', {})
1646 call term_sendkeys(buf, ":call popup_setoptions(g:id, #{firstline: 5})\<CR>")
1647 call term_sendkeys(buf, ":\<CR>")
1648 call VerifyScreenDump(buf, 'Test_popupwin_set_firstline_2', {})
1650 call StopVimInTerminal(buf)
1663 let buf = RunVimInTerminal('-S XtestPopupWinExecuteError', #{rows: 10, wait_for_ruler: 0})
1665 call WaitFor({-> term_getline(buf, 9) =~ 'Not an editor command: invalidCommand'})
1666 call term_sendkeys(buf, "\<CR>")
1667 call WaitFor({-> term_getline(buf, 9) =~ 'Unknown function: invalidfilter'})
1668 call term_sendkeys(buf, "\<CR>")
1669 call WaitFor({-> term_getline(buf, 9) =~ 'Not allowed in a popup window'})
1670 call term_sendkeys(buf, "\<CR>")
1671 call term_sendkeys(buf, "\<CR>")
1672 call VerifyScreenDump(buf, 'Test_popupwin_win_execute', {})
1674 call StopVimInTerminal(buf)
1753 let buf = RunVimInTerminal('-S XtestPopupMenu', #{rows: 10})
1754 call VerifyScreenDump(buf, 'Test_popupwin_menu_01', {})
1756 call term_sendkeys(buf, "jj")
1757 call VerifyScreenDump(buf, 'Test_popupwin_menu_02', {})
1759 call term_sendkeys(buf, " ")
1760 call VerifyScreenDump(buf, 'Test_popupwin_menu_03', {})
1763 call StopVimInTerminal(buf)
1779 let buf = RunVimInTerminal('-S XtestPopupNarrowMenu', #{rows: 10})
1780 call VerifyScreenDump(buf, 'Test_popupwin_menu_04', {})
1783 call term_sendkeys(buf, "x")
1784 call StopVimInTerminal(buf)
1798 let buf = RunVimInTerminal('-S XtestPopupTitle', #{rows: 10})
1799 call VerifyScreenDump(buf, 'Test_popupwin_title', {})
1801 …call term_sendkeys(buf, ":call popup_setoptions(winid, #{maxwidth: 20, title: 'a very long title t…
1802 call term_sendkeys(buf, ":\<CR>")
1803 call VerifyScreenDump(buf, 'Test_popupwin_longtitle_1', {})
1805 call term_sendkeys(buf, ":call popup_setoptions(winid, #{border: []})\<CR>")
1806 call term_sendkeys(buf, ":\<CR>")
1807 call VerifyScreenDump(buf, 'Test_popupwin_longtitle_2', {})
1809 call term_sendkeys(buf, ":call popup_clear()\<CR>")
1810 …call term_sendkeys(buf, ":call popup_create(['aaa', 'bbb'], #{title: 'Title', minwidth: 12, paddin…
1811 call term_sendkeys(buf, ":\<CR>")
1812 call VerifyScreenDump(buf, 'Test_popupwin_longtitle_3', {})
1814 call term_sendkeys(buf, ":call popup_clear()\<CR>")
1815 …call term_sendkeys(buf, ":call popup_create(['aaa', 'bbb'], #{title: 'Title', minwidth: 12, border…
1816 call term_sendkeys(buf, ":\<CR>")
1817 call VerifyScreenDump(buf, 'Test_popupwin_longtitle_4', {})
1819 call term_sendkeys(buf, ":call popup_clear()\<CR>")
1820 …call term_sendkeys(buf, ":call popup_menu(['This is a line', 'and another line'], #{title: '▶Äあいうえ…
1821 call VerifyScreenDump(buf, 'Test_popupwin_multibytetitle', {})
1822 call term_sendkeys(buf, "x")
1825 call StopVimInTerminal(buf)
1888 let buf = RunVimInTerminal('-S XtestPopupBehind', #{rows: 10})
1889 call term_sendkeys(buf, "\<C-W>w")
1890 call VerifyScreenDump(buf, 'Test_popupwin_behind', {})
1893 call StopVimInTerminal(buf)
2177 let buf = RunVimInTerminal('-S XtestNotifications', #{rows: 10})
2178 call VerifyScreenDump(buf, 'Test_popupwin_notify_01', {})
2181 call term_sendkeys(buf, ":hi link PopupNotification Notification\<CR>")
2182 call term_sendkeys(buf, ":call popup_notification('another important notification', {})\<CR>")
2183 call VerifyScreenDump(buf, 'Test_popupwin_notify_02', {})
2186 call StopVimInTerminal(buf)
2262 let buf = RunVimInTerminal('-S XtestPopupScroll', #{rows: 10})
2263 call VerifyScreenDump(buf, 'Test_popupwin_scroll_1', {})
2265 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: 2})\<CR>")
2266 call term_sendkeys(buf, ":\<CR>")
2267 call VerifyScreenDump(buf, 'Test_popupwin_scroll_2', {})
2269 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: 6})\<CR>")
2270 call term_sendkeys(buf, ":\<CR>")
2271 call VerifyScreenDump(buf, 'Test_popupwin_scroll_3', {})
2273 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: 9})\<CR>")
2274 call term_sendkeys(buf, ":\<CR>")
2275 call VerifyScreenDump(buf, 'Test_popupwin_scroll_4', {})
2277 …call term_sendkeys(buf, ":call popup_setoptions(winid, #{scrollbarhighlight: 'ScrollBar', thumbhig…
2279 call term_sendkeys(buf, ":call ScrollUp()\<CR>")
2280 call VerifyScreenDump(buf, 'Test_popupwin_scroll_5', {})
2282 call term_sendkeys(buf, ":call ScrollDown()\<CR>")
2283 call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {})
2285 call term_sendkeys(buf, ":call ScrollDown()\<CR>")
2288 call term_sendkeys(buf, ":call ScrollDown()\<CR>")
2289 call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {})
2291 call term_sendkeys(buf, ":call ClickTop()\<CR>")
2293 call term_sendkeys(buf, ":call ClickTop()\<CR>")
2294 call VerifyScreenDump(buf, 'Test_popupwin_scroll_8', {})
2296 call term_sendkeys(buf, ":call ClickBot()\<CR>")
2297 call VerifyScreenDump(buf, 'Test_popupwin_scroll_9', {})
2300 call term_sendkeys(buf, ":call popup_setoptions(winid, #{maxheight: 0, minwidth: 0})\<CR>")
2301 call term_sendkeys(buf, ":\<CR>")
2302 call VerifyScreenDump(buf, 'Test_popupwin_scroll_10', {})
2305 call term_sendkeys(buf, ":call PopupScroll()\<CR>")
2306 call VerifyScreenDump(buf, 'Test_popupwin_scroll_11', {})
2309 call term_sendkeys(buf, "j")
2310 call VerifyScreenDump(buf, 'Test_popupwin_scroll_12', {})
2313 call term_sendkeys(buf, "x")
2314 call StopVimInTerminal(buf)
2335 let buf = RunVimInTerminal('-S XtestPopupToohigh', #{rows: 10})
2336 call VerifyScreenDump(buf, 'Test_popupwin_toohigh_1', {})
2338 call term_sendkeys(buf, ":call popup_clear()\<CR>")
2339 call term_sendkeys(buf, "8G$")
2340 call term_sendkeys(buf, ":call ShowPopup()\<CR>")
2341 call VerifyScreenDump(buf, 'Test_popupwin_toohigh_2', {})
2343 call term_sendkeys(buf, ":call popup_clear()\<CR>")
2344 call term_sendkeys(buf, "gg$")
2345 call term_sendkeys(buf, ":call ShowPopup()\<CR>")
2346 call VerifyScreenDump(buf, 'Test_popupwin_toohigh_3', {})
2349 call StopVimInTerminal(buf)
2375 let buf = RunVimInTerminal('-S XtestPopupSetText', #{rows: 10})
2376 call VerifyScreenDump(buf, 'Test_popup_settext_01', {})
2379 call term_sendkeys(buf, ":call popup_settext(p, '')\<CR>")
2380 call VerifyScreenDump(buf, 'Test_popup_settext_02', {})
2383 call term_sendkeys(buf, ":call popup_settext(p, ['a','b','c'])\<CR>")
2384 call VerifyScreenDump(buf, 'Test_popup_settext_03', {})
2387 call term_sendkeys(buf, ":call popup_settext(p, ['a'])\<CR>")
2388 call VerifyScreenDump(buf, 'Test_popup_settext_04', {})
2391 call term_sendkeys(buf, ":call popup_settext(p, ['a','b','c'])\<CR>")
2392 call VerifyScreenDump(buf, 'Test_popup_settext_03', {})
2395 call term_sendkeys(buf, ":call popup_settext(p, [])\<CR>")
2396 call VerifyScreenDump(buf, 'Test_popup_settext_05', {})
2399 …call term_sendkeys(buf, ":call popup_settext(p, [#{text: 'aaaa'}, #{text: 'bbbb'}, #{text: 'cccc'}…
2400 call VerifyScreenDump(buf, 'Test_popup_settext_06', {})
2403 call term_sendkeys(buf, ":call popup_settext(p, range(4, 8))\<CR>")
2404 call VerifyScreenDump(buf, 'Test_popup_settext_07', {})
2407 call StopVimInTerminal(buf)
2679 let buf = bufadd('XsomeFile')
2680 call assert_equal(0, bufloaded(buf))
2683 call setbufvar(buf, "&wrapmargin", 13)
2685 let winid = popup_create(buf, {})
2689 call assert_equal(1, bufloaded(buf))
2693 call assert_equal(13, getbufvar(buf, '&wrapmargin'))
2697 call assert_equal(1, bufloaded(buf))
2698 exe 'bwipe! ' .. buf
2776 var buf = term_start(&shell, {hidden: 1})
2777 popup_create(buf, {})
2778 TermWait(buf, 100)
2783 exe 'bwipe! ' .. buf
2825 let buf = bufadd('Xtestbuf')
2826 call bufload(buf)
2827 call setbufline(buf, 1, ['just', 'some', 'lines'])
2828 let winid = popup_create(buf, {})
2831 let bufinfo = getbufinfo(buf)[0]
2841 let bufinfo = getbufinfo(buf)[0]
2848 exe 'bwipe! ' .. buf
2875 let buf = RunVimInTerminal('-S XtestPopupMenuMaxWidth', #{rows: 13})
2876 call VerifyScreenDump(buf, 'Test_popupwin_menu_maxwidth_1', {})
2879 call term_sendkeys(buf, " ")
2880 call term_sendkeys(buf, " ")
2881 call term_sendkeys(buf, " ")
2882 call term_sendkeys(buf, " ")
2883 call term_sendkeys(buf, " ")
2886 call StopVimInTerminal(buf)
2905 let buf = RunVimInTerminal('-S XtestPopupMenuScroll', #{rows: 10})
2907 call term_sendkeys(buf, "j")
2908 call VerifyScreenDump(buf, 'Test_popupwin_menu_scroll_1', {})
2910 call term_sendkeys(buf, "jjj")
2911 call VerifyScreenDump(buf, 'Test_popupwin_menu_scroll_2', {})
2914 call term_sendkeys(buf, repeat("j", 20))
2915 call VerifyScreenDump(buf, 'Test_popupwin_menu_scroll_3', {})
2917 call term_sendkeys(buf, "kk")
2918 call VerifyScreenDump(buf, 'Test_popupwin_menu_scroll_4', {})
2920 call term_sendkeys(buf, "k")
2921 call VerifyScreenDump(buf, 'Test_popupwin_menu_scroll_5', {})
2924 call term_sendkeys(buf, repeat("k", 20))
2925 call VerifyScreenDump(buf, 'Test_popupwin_menu_scroll_6', {})
2928 call term_sendkeys(buf, " ")
2931 call StopVimInTerminal(buf)
2968 let buf = RunVimInTerminal('-S XtestPopupMenuFilter', #{rows: 10})
2970 call term_sendkeys(buf, "j")
2971 call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_1', {})
2973 call term_sendkeys(buf, "k")
2974 call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_2', {})
2976 call term_sendkeys(buf, "G")
2977 call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_3', {})
2979 call term_sendkeys(buf, "0")
2980 call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_4', {})
2983 call term_sendkeys(buf, ":")
2984 call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_5', {})
2985 call term_sendkeys(buf, "\<CR>")
2988 call StopVimInTerminal(buf)
3030 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
3031 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_1', {})
3032 call term_sendkeys(buf, ":call popup_clear()\<cr>")
3033 call StopVimInTerminal(buf)
3042 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
3043 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_2', {})
3044 call term_sendkeys(buf, ":call popup_clear()\<cr>")
3045 call StopVimInTerminal(buf)
3069 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
3070 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_3', {})
3071 call term_sendkeys(buf, "j")
3072 call term_sendkeys(buf, "j")
3073 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_4', {})
3074 call term_sendkeys(buf, "x")
3075 call StopVimInTerminal(buf)
3099 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
3100 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_5', {})
3101 call term_sendkeys(buf, "j")
3102 call term_sendkeys(buf, "j")
3103 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_6', {})
3104 call term_sendkeys(buf, "x")
3105 call StopVimInTerminal(buf)
3117 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
3118 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_7', {})
3119 call StopVimInTerminal(buf)
3134 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
3135 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_8', {})
3136 call StopVimInTerminal(buf)
3188 let buf = RunVimInTerminal('-S XtestPreviewPopup', #{rows: 14})
3190 call term_sendkeys(buf, "/theword\<CR>\<C-W>}")
3191 call term_sendkeys(buf, ":\<CR>")
3192 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_1', {})
3194 call term_sendkeys(buf, ":set previewpopup+=highlight:OtherColor\<CR>")
3195 call term_sendkeys(buf, "/another\<CR>\<C-W>}")
3196 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_2', {})
3198 call term_sendkeys(buf, ":call popup_move(popup_findpreview(), #{col: 15})\<CR>")
3199 call term_sendkeys(buf, ":\<CR>")
3200 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_3', {})
3202 call term_sendkeys(buf, "/another\<CR>\<C-W>}")
3203 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_4', {})
3205 call term_sendkeys(buf, ":silent cd ..\<CR>:\<CR>")
3206 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_5', {})
3207 call term_sendkeys(buf, ":silent cd testdir\<CR>")
3209 call term_sendkeys(buf, ":set previewpopup-=highlight:OtherColor\<CR>")
3210 call term_sendkeys(buf, ":pclose\<CR>")
3211 call term_sendkeys(buf, ":\<BS>")
3212 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_6', {})
3214 call term_sendkeys(buf, ":pedit +/theword Xtagfile\<CR>")
3215 call term_sendkeys(buf, ":\<CR>")
3216 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_7', {})
3218 call term_sendkeys(buf, ":pclose\<CR>")
3219 call term_sendkeys(buf, ":psearch searched\<CR>")
3220 call term_sendkeys(buf, ":\<CR>")
3221 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_8', {})
3223 call term_sendkeys(buf, "\<C-W>p")
3224 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_9', {})
3226 call term_sendkeys(buf, ":call win_execute(popup_findpreview(), 'call popup_clear()')\<CR>")
3227 call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_10', {})
3229 call StopVimInTerminal(buf)
3372 let buf = RunVimInTerminal('-S XtestInfoPopup', #{rows: 14})
3373 call TermWait(buf, 25)
3375 call term_sendkeys(buf, "A\<C-X>\<C-U>")
3376 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_1', {})
3378 call term_sendkeys(buf, "\<C-N>")
3379 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_2', {})
3381 call term_sendkeys(buf, "\<C-N>")
3382 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_3', {})
3384 call term_sendkeys(buf, "\<C-N>\<C-N>")
3385 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_4', {})
3388 call term_sendkeys(buf, "test text test text\<C-X>\<C-U>")
3389 call term_sendkeys(buf, "\<C-N>\<C-N>")
3390 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_5', {})
3393 call term_sendkeys(buf, "\<Esc>")
3394 call term_sendkeys(buf, ":set pumheight=3\<CR>")
3395 call term_sendkeys(buf, "cc\<C-X>\<C-U>")
3396 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_6', {})
3400 call term_sendkeys(buf, "\<Esc>")
3401 call term_sendkeys(buf, ":set hidden\<CR>")
3402 call term_sendkeys(buf, ":bn\<CR>")
3403 call term_sendkeys(buf, ":bn\<CR>")
3404 call term_sendkeys(buf, "otest text test text\<C-X>\<C-U>")
3405 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_7', {})
3408 call term_sendkeys(buf, "\<Esc>")
3409 call term_sendkeys(buf, ":set completepopup=border:off\<CR>")
3410 call term_sendkeys(buf, "a\<C-X>\<C-U>")
3411 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_8', {})
3413 call term_sendkeys(buf, " \<Esc>")
3414 call term_sendkeys(buf, ":set completepopup+=width:10\<CR>")
3415 call term_sendkeys(buf, "a\<C-X>\<C-U>")
3416 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_9', {})
3418 call term_sendkeys(buf, "\<Esc>")
3419 call StopVimInTerminal(buf)
3431 let buf = RunVimInTerminal('-S XtestInfoPopupNb', #{rows: 14})
3432 call TermWait(buf, 25)
3434 call term_sendkeys(buf, "A\<C-X>\<C-U>")
3435 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_nb_1', {})
3437 call StopVimInTerminal(buf)
3449 let buf = RunVimInTerminal('-S XtestInfoPopupNb', #{rows: 14})
3450 call TermWait(buf, 25)
3452 call term_sendkeys(buf, "A\<C-X>\<C-U>")
3453 call term_sendkeys(buf, "\<C-N>")
3454 call term_sendkeys(buf, "\<C-N>")
3455 call term_sendkeys(buf, "\<C-N>")
3456 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_align_1', {})
3458 call term_sendkeys(buf, "test text test text test\<C-X>\<C-U>")
3459 call term_sendkeys(buf, "\<C-N>")
3460 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_align_2', {})
3462 call term_sendkeys(buf, "\<Esc>")
3463 call term_sendkeys(buf, ":call ChangeColor()\<CR>")
3464 call term_sendkeys(buf, ":call setline(2, ['x']->repeat(10))\<CR>")
3465 call term_sendkeys(buf, "Gotest text test text\<C-X>\<C-U>")
3466 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_align_3', {})
3468 call StopVimInTerminal(buf)
3480 let buf = RunVimInTerminal('-S XtestInfoPopupHidden', #{rows: 14})
3481 call TermWait(buf, 25)
3483 call term_sendkeys(buf, "A\<C-X>\<C-U>")
3484 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_hidden_1', {})
3486 call term_sendkeys(buf, "\<C-N>")
3487 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_hidden_2', {})
3489 call term_sendkeys(buf, "\<C-N>")
3490 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_hidden_3', {})
3492 call term_sendkeys(buf, "\<Esc>")
3493 call StopVimInTerminal(buf)
3538 let buf = RunVimInTerminal('-S XtestInfoPopupWide', #{rows: 8})
3539 call TermWait(buf, 25)
3541 call term_sendkeys(buf, "Ascr\<C-X>\<C-O>")
3542 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_wide_1', {})
3544 call term_sendkeys(buf, "\<Esc>")
3545 call StopVimInTerminal(buf)
3559 let buf = RunVimInTerminal('-S XtestPopupmenuMasking', #{rows: 14})
3560 call TermWait(buf, 25)
3562 call term_sendkeys(buf, "A\<C-X>\<C-U>\<C-A>")
3563 call VerifyScreenDump(buf, 'Test_popupwin_popupmenu_masking_1', {})
3565 call term_sendkeys(buf, "\<Esc>")
3566 call VerifyScreenDump(buf, 'Test_popupwin_popupmenu_masking_2', {})
3568 call StopVimInTerminal(buf)
3659 let buf = RunVimInTerminal('-S XtestPopupWide', #{rows: 10})
3660 call VerifyScreenDump(buf, 'Test_popupwin_doublewidth_1', {})
3662 call StopVimInTerminal(buf)
3705 let buf = RunVimInTerminal('-S XtestPopupSign', #{rows: 10})
3706 call VerifyScreenDump(buf, 'Test_popupwin_sign_1', {})
3709 call term_sendkeys(buf, ":call SetOptions()\<CR>")
3710 call VerifyScreenDump(buf, 'Test_popupwin_sign_2', {})
3712 call StopVimInTerminal(buf)
3779 let buf = RunVimInTerminal('-S XtestPopupCtrlC', #{rows: 10})
3781 call term_sendkeys(buf, "\<C-C>")
3782 call VerifyScreenDump(buf, 'Test_popupwin_ctrl_c', {})
3784 call StopVimInTerminal(buf)
3796 let buf = RunVimInTerminal('-S XtestPopupWrongName', #{rows: 10})
3798 call term_sendkeys(buf, "j")
3799 call VerifyScreenDump(buf, 'Test_popupwin_wrong_name', {})
3801 call StopVimInTerminal(buf)
3814 let buf = RunVimInTerminal('-S XtestPopupThreeErrors', #{rows: 10})
3816 call term_sendkeys(buf, "jj")
3817 call VerifyScreenDump(buf, 'Test_popupwin_three_errors_1', {})
3818 call term_sendkeys(buf, "j")
3819 call VerifyScreenDump(buf, 'Test_popupwin_three_errors_2', {})
3821 call StopVimInTerminal(buf)
3845 let buf = RunVimInTerminal('-S XtestPopupLatin', #{rows: 10})
3846 call WaitForAssert({-> assert_match('Done', term_getline(buf, 10))})
3848 call term_sendkeys(buf, ":q\<CR>")
3849 call StopVimInTerminal(buf)
3973 let buf = RunVimInTerminal('-S XtestPropNotVisble', #{rows: 10})
3974 call VerifyScreenDump(buf, 'Test_popup_prop_not_visible_01', {})
3976 call term_sendkeys(buf, ":vert resize -14\<CR>")
3977 call VerifyScreenDump(buf, 'Test_popup_prop_not_visible_02', {})
3979 call term_sendkeys(buf, ":vert resize -8\<CR>")
3980 call VerifyScreenDump(buf, 'Test_popup_prop_not_visible_03', {})
3983 call StopVimInTerminal(buf)