Lines Matching refs:winid

18 …let winid = popup_create('hello there', #{line: 3, col: 11, minwidth: 20, highlight: 'PopupColor1'…
117 …let winid = popup_create(['hello border', 'with numbers'], #{line: 6, col: 3, border: [], borderhi…
128 …call term_sendkeys(buf, ":call popup_setoptions(winid, #{borderchars: ['a', 'b', 'c', 'd', 'e', 'f…
153 let winid = popup_create('hello border', #{line: 2, col: 3, border: []})",
154 call assert_equal(with_border_or_padding, winid->popup_getpos())
155 let options = popup_getoptions(winid)
159 let winid = popup_create('hello padding', #{line: 2, col: 3, padding: []})
162 call assert_equal(with_border_or_padding, popup_getpos(winid))
163 let options = popup_getoptions(winid)
167 call popup_setoptions(winid, #{
173 let options = popup_getoptions(winid)
180 call popup_setoptions(winid, options)
181 call assert_equal(options, popup_getoptions(winid))
184 call popup_setoptions(winid, #{
191 let winid = popup_create('hello both', #{line: 3, col: 8, border: [], padding: []})
204 \ visible: 1}, popup_getpos(winid))
215 let winid = popup_create([
222 call win_execute(winid, 'set syntax=cpp')
239 let winid = popup_create([
246 call setbufvar(winbufnr(winid), '&syntax', 'cpp')
262 let winid = popup_create([
271 call win_execute(winid, "call matchadd('ErrorMsg', '111')")
272 call win_execute(winid, "call matchadd('VeryBlue', '555')")
436 …let winid = popup_create(['1111', '222222', '33333', '44', '5', '666666', '77777', '888', '9999999…
445 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: -1})\<CR>")
455 let winid = popup_create(['1111', '222222', '33333', '44444'], #{
459 call assert_equal(3, popup_getoptions(winid).firstline)
460 call popup_setoptions(winid, #{firstline: 1})
461 call assert_equal(1, popup_getoptions(winid).firstline)
462 eval winid->popup_close()
464 let winid = popup_create(['xxx']->repeat(50), #{
469 call assert_equal(11, popup_getoptions(winid).firstline)
470 call assert_equal(11, popup_getpos(winid).firstline)
472 call assert_equal(11, line('.', winid))
473 call assert_equal(50, line('$', winid))
477 call win_execute(winid, "normal! \<c-y>")
478 call assert_equal(11, popup_getoptions(winid).firstline)
479 call assert_equal(10, popup_getpos(winid).firstline)
482 call popup_setoptions(winid, #{line: 4})
483 call assert_equal(11, popup_getoptions(winid).firstline)
484 call assert_equal(11, popup_getpos(winid).firstline)
487 call popup_setoptions(winid, #{firstline: 0})
488 call win_execute(winid, "normal! \<c-y>")
489 call assert_equal(0, popup_getoptions(winid).firstline)
490 call assert_equal(10, popup_getpos(winid).firstline)
493 call popup_setoptions(winid, #{line: 3})
494 call assert_equal(0, popup_getoptions(winid).firstline)
495 call assert_equal(10, popup_getpos(winid).firstline)
496 call popup_close(winid)
499 let winid = popup_create(['xxx']->repeat(50), #{
503 call assert_equal(1, popup_getpos(winid).firstline)
504 call win_execute(winid, "normal! \<C-D>")
505 call assert_equal(5, popup_getpos(winid).firstline)
506 call win_execute(winid, "normal! \<C-D>")
507 call assert_equal(9, popup_getpos(winid).firstline)
508 call win_execute(winid, "normal! \<C-U>")
509 call assert_equal(5, popup_getpos(winid).firstline)
511 call win_execute(winid, "normal! \<C-F>")
512 call assert_equal(11, popup_getpos(winid).firstline)
513 call win_execute(winid, "normal! \<C-B>")
514 call assert_equal(5, popup_getpos(winid).firstline)
516 call popup_close(winid)
520 let winid = popup_create(['1111', '222222', '33333', '44444'], #{
525 call assert_equal(3, popup_getoptions(winid).firstline)
526 call assert_equal(3, getwininfo(winid)[0].topline)
527 call assert_equal(3, getcurpos(winid)[1])
529 call popup_close(winid)
534 let winid = popup_create(['xxx']->repeat(50), #{
539 call assert_equal(11, popup_getoptions(winid).firstline)
540 call assert_equal(11, popup_getpos(winid).firstline)
542 call popup_setoptions(winid, #{firstline: 0})
543 call win_execute(winid, "normal! \<c-y>")
544 call assert_equal(0, popup_getoptions(winid).firstline)
545 call assert_equal(10, popup_getpos(winid).firstline)
547 call popup_close(winid)
561 let winid = popup_create(['1111', '222222', '33333'], #{
612 let winid = popup_create(['1111', '2222'], #{
656 let winid = popup_create('foobar', #{
665 let winid = popup_create('notification', #{
671 let winid = popup_create('no border here', #{
676 let winid = popup_create('only padding', #{
691 let winid = popup_create('barfoo', #{
761 let winid = popup_create([
801 call term_sendkeys(buf, ":call popup_move(winid, #{col: 11, line: 2})\<CR>")
806 call term_sendkeys(buf, ":call popup_move(winid, #{col: 65, line: 2})\<CR>")
811 call term_sendkeys(buf, ":call popup_move(winid, #{pos: 'topright', col: 12, line: 2})\<CR>")
816 call term_sendkeys(buf, ":call popup_move(winid, #{pos: 'topright', col: 12, line: 11})\<CR>")
857 …let winid = popup_create(['the word', 'some more', 'several words here', 'invisible', '5', '6', '7…
875 call term_sendkeys(buf, ":call popup_close(winid)\<CR>")
889 let winid = popup_create("text", {})
890 let bufnr = winbufnr(winid)
891 call assert_equal(1, popup_getpos(winid).visible)
892 call assert_equal(0, popup_getoptions(winid).tabpage)
894 call assert_equal(0, popup_getpos(winid).visible)
895 call assert_equal(1, popup_getoptions(winid).tabpage)
897 call assert_equal(1, popup_getpos(winid).visible)
905 let winid = popup_create("text", #{tabpage: -1})
906 call assert_equal(1, popup_getpos(winid).visible)
907 call assert_equal(-1, popup_getoptions(winid).tabpage)
909 call assert_equal(1, popup_getpos(winid).visible)
910 call assert_equal(-1, popup_getoptions(winid).tabpage)
912 call assert_equal(1, popup_getpos(winid).visible)
917 let winid = popup_create("text", #{tabpage: 1})
918 call assert_equal(0, popup_getpos(winid).visible)
919 call assert_equal(1, popup_getoptions(winid).tabpage)
921 call assert_equal(1, popup_getpos(winid).visible)
922 call assert_equal(0, popup_getoptions(winid).tabpage)
930 let winid = popup_create("text", #{col: 0})
931 let pos = popup_getpos(winid)
933 call assert_equal([winid], popup_list())
937 let winid = popup_create("text", #{col: 'cursor-100'})
938 let pos = popup_getpos(winid)
943 let winid = popup_create("text", #{pos: 'center'})
944 let pos = popup_getpos(winid)
1015 let winid = popup_create('some text', {})
1016 call assert_fails('call win_execute(winid, winnr() .. "close")', 'E994:')
1019 let winid = popup_create('some text', {})
1020 …call assert_fails('call win_execute(winid, printf("normal! :\<C-u>call popup_close(%d)\<CR>", wini…
1025 let winid = popup_create('some text', {})
1026 call assert_fails('call win_execute(winid, "split")', 'E994:')
1027 call assert_fails('call win_execute(winid, "vsplit")', 'E994:')
1028 call assert_fails('call win_execute(winid, "close")', 'E994:')
1029 call assert_fails('call win_execute(winid, "bdelete")', 'E994:')
1030 call assert_fails('call win_execute(winid, "bwipe!")', 'E994:')
1031 call assert_fails('call win_execute(winid, "tabnew")', 'E994:')
1032 call assert_fails('call win_execute(winid, "tabnext")', 'E994:')
1033 call assert_fails('call win_execute(winid, "next")', 'E994:')
1034 call assert_fails('call win_execute(winid, "rewind")', 'E994:')
1035 call assert_fails('call win_execute(winid, "pedit filename")', 'E994:')
1036 call assert_fails('call win_execute(winid, "buf")', 'E994:')
1037 call assert_fails('call win_execute(winid, "bnext")', 'E994:')
1038 call assert_fails('call win_execute(winid, "bprev")', 'E994:')
1039 call assert_fails('call win_execute(winid, "bfirst")', 'E994:')
1040 call assert_fails('call win_execute(winid, "blast")', 'E994:')
1041 call assert_fails('call win_execute(winid, "edit")', 'E994:')
1042 call assert_fails('call win_execute(winid, "enew")', 'E994:')
1043 call assert_fails('call win_execute(winid, "help")', 'E994:')
1044 call assert_fails('call win_execute(winid, "1only")', 'E994:')
1045 call assert_fails('call win_execute(winid, "wincmd x")', 'E994:')
1046 call assert_fails('call win_execute(winid, "wincmd w")', 'E994:')
1047 call assert_fails('call win_execute(winid, "wincmd t")', 'E994:')
1048 call assert_fails('call win_execute(winid, "wincmd b")', 'E994:')
1057 let winid = popup_create(
1075 let winid = popup_create(
1094 let winid = popup_dialog(
1115 let winid = popup_create('world', #{
1125 call assert_equal(winid, popup_locate(1, 1))
1126 call assert_equal(winid, popup_locate(1, 20))
1157 let winid = popup_create('world', #{
1165 call assert_equal(1, popup_getpos(winid).visible)
1167 call assert_match(winbufnr(winid) .. 'u a.*\[Popup\]', execute('ls u'))
1169 call popup_hide(winid)
1173 call assert_equal(0, popup_getpos(winid).visible)
1175 call assert_match(winbufnr(winid) .. 'u a.*\[Popup\]', execute('ls u'))
1177 eval winid->popup_show()
1181 call assert_equal(1, popup_getpos(winid).visible)
1184 call popup_close(winid)
1203 let winid = popup_create('world', #{
1212 call popup_move(winid, #{line: 2, col: 2})
1219 eval winid->popup_move(#{line: 1})
1224 call assert_fails('call popup_move(winid, [])', 'E715:')
1225 call assert_fails('call popup_move(winid, test_null_dict())', 'E715:')
1227 call popup_close(winid)
1235 let winid = popup_create('hello', #{
1242 let res = popup_getpos(winid)
1249 call popup_close(winid)
1262 let winid = popup_create(test[0], #{line: 2, col: 3})
1264 let position = popup_getpos(winid)
1266 call popup_close(winid)
1277 let winid = popup_create(test[0],
1280 let position = popup_getpos(winid)
1284 call popup_close(winid)
1285 call assert_equal({}, popup_getpos(winid))
1290 let winid = popup_create('hello', #{
1302 let res = popup_getoptions(winid)
1315 call popup_close(winid)
1317 let winid = popup_create('hello', {})
1319 let res = popup_getoptions(winid)
1331 call popup_close(winid)
1332 call assert_equal({}, popup_getoptions(winid))
1347 let winid = popup_create('hello', {})
1348 call assert_equal(0, getwinvar(winid, '&number'))
1349 call assert_equal(1, getwinvar(winid, '&wrap'))
1350 call assert_equal('', getwinvar(winid, '&omnifunc'))
1351 call assert_equal(&g:path, getwinvar(winid, '&path'))
1352 call assert_equal(&g:statusline, getwinvar(winid, '&statusline'))
1356 call assert_equal(0, getwinvar(winid, '&scrolloff'))
1358 call popup_close(winid)
1372 let winid = popup_atcursor('vim', {})
1376 call popup_close(winid)
1380 let winid = 'vim'->popup_atcursor({})
1384 call popup_close(winid)
1388 let winid = popup_create('vim', #{
1395 call popup_close(winid)
1399 let winid = popup_create('vim', #{
1406 call popup_close(winid)
1411 let winid = popup_atcursor(['vim', 'is great'], {})
1413 let pos = popup_getpos(winid)
1415 call popup_close(winid)
1420 let winid = popup_atcursor(['vim', 'is', 'great'], {})
1422 let pos = popup_getpos(winid)
1424 call popup_close(winid)
1429 let winid = popup_atcursor(['vim', 'is', 'great'], {})
1431 let pos = popup_getpos(winid)
1433 call popup_close(winid)
1494 let s:winid = [v:beval_text]->popup_beval({})
1533 func MyPopupFilter(winid, c) argument
1543 call popup_close(a:winid)
1549 let winid = 'something'->popup_create(#{filter: 'MyPopupFilter'})
1575 call assert_equal(-1, winbufnr(winid))
1589 let g:winid = popup_create(text, #{maxheight: 5, minwidth: 3, filter: 'invalidfilter'})
1590 call timer_start(0, {-> win_execute(g:winid, 'norm! 10Gzz')})
1659 let g:winid = popup_create('some text', {'filter': 'invalidfilter'})
1660 call timer_start(0, {-> win_execute(g:winid, 'invalidCommand')})
1680 let winid = popup_dialog('do you want to quit (Yes/no)?', #{
1686 call assert_equal(winid, s:cb_winid)
1696 let winid = ShowDialog("y", 1)
1697 let winid = ShowDialog("Y", 1)
1698 let winid = ShowDialog("n", 0)
1699 let winid = ShowDialog("N", 0)
1700 let winid = ShowDialog("x", 0)
1701 let winid = ShowDialog("X", 0)
1702 let winid = ShowDialog("\<Esc>", 0)
1703 let winid = ShowDialog("\<C-C>", -1)
1710 let winid = popup_menu(['one', 'two', 'something else'], #{
1715 call assert_equal(winid, s:cb_winid)
1727 let winid = ShowMenu(" ", 1)
1728 let winid = ShowMenu("j \<CR>", 2)
1729 let winid = ShowMenu("JjK \<CR>", 2)
1730 let winid = ShowMenu("jjjjjj ", 3)
1731 let winid = ShowMenu("kkk ", 1)
1732 let winid = ShowMenu("x", -1)
1733 let winid = ShowMenu("X", -1)
1734 let winid = ShowMenu("\<Esc>", -1)
1735 let winid = ShowMenu("\<C-C>", -1)
1795 let winid = popup_create(['one', 'two', 'another'], #{title: 'Title String'})
1801 …call term_sendkeys(buf, ":call popup_setoptions(winid, #{maxwidth: 20, title: 'a very long title t…
1805 call term_sendkeys(buf, ":call popup_setoptions(winid, #{border: []})\<CR>")
1828 let winid = popup_create('something', #{title: 'Some Title'})
1829 call assert_equal('Some Title', popup_getoptions(winid).title)
1830 call popup_setoptions(winid, #{title: 'Another Title'})
1831 call assert_equal('Another Title', popup_getoptions(winid).title)
1840 let winid = popup_create('something', #{callback: 'PopupDone'})
1842 call popup_close(winid, 'done')
1847 let winid = popup_create('', #{padding: [2,2,2,2]})
1849 let pos = popup_getpos(winid)
1852 call popup_close(winid)
1854 let winid = popup_create([], #{border: []})
1856 let pos = popup_getpos(winid)
1859 call popup_close(winid)
2107 let winid = popup_atcursor('text', #{moved: 'any'})
2109 call assert_equal(1, popup_getpos(winid).visible)
2110 call assert_equal([1, 4, 4], popup_getoptions(winid).moved)
2113 call assert_equal({}, popup_getpos(winid))
2117 let winid = popup_atcursor('text', #{moved: 'word'})
2119 call assert_equal(1, popup_getpos(winid).visible)
2120 call assert_equal([1, 4, 7], popup_getoptions(winid).moved)
2122 call assert_equal({}, popup_getpos(winid))
2126 let winid = popup_atcursor('text', #{moved: 'word'})
2128 call assert_equal(1, popup_getpos(winid).visible)
2129 call assert_equal([1, 4, 7], popup_getoptions(winid).moved)
2131 call assert_equal(1, popup_getpos(winid).visible)
2133 call assert_equal(1, popup_getpos(winid).visible)
2135 call assert_equal({}, popup_getpos(winid))
2140 let winid = popup_atcursor('text', {})
2142 call assert_equal(1, popup_getpos(winid).visible)
2143 call assert_equal([2, 2, 15], popup_getoptions(winid).moved)
2145 call assert_equal(1, popup_getpos(winid).visible)
2147 call assert_equal(1, popup_getpos(winid).visible)
2149 call assert_equal({}, popup_getpos(winid))
2153 let winid = popup_atcursor('text', #{moved: [5, 10]})
2155 call assert_equal(1, popup_getpos(winid).visible)
2158 call assert_equal(1, popup_getpos(winid).visible)
2160 call assert_equal({}, popup_getpos(winid))
2197 let winid = popup_create(['one', 'two', 'three', 'four', 'five',
2212 call popup_setoptions(g:winid, #{border: [], close: 'button'})
2215 func Popup_filter(winid, key) argument
2218 let line = popup_getoptions(a:winid).firstline
2219 let nlines = line('$', a:winid)
2221 call popup_setoptions(a:winid, #{firstline: newline})
2224 call popup_close(a:winid)
2265 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: 2})\<CR>")
2269 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: 6})\<CR>")
2273 call term_sendkeys(buf, ":call popup_setoptions(winid, #{firstline: 9})\<CR>")
2277 …call term_sendkeys(buf, ":call popup_setoptions(winid, #{scrollbarhighlight: 'ScrollBar', thumbhig…
2300 call term_sendkeys(buf, ":call popup_setoptions(winid, #{maxheight: 0, minwidth: 0})\<CR>")
2325 let winid = popup_atcursor(['one', 'two', 'three', 'four', 'five',
2355 let winid = popup_create([
2436 let winid = popup_atcursor('text', #{hidden: 1})
2438 call assert_equal(0, popup_getpos(winid).visible)
2439 call popup_close(winid)
2441 let winid = popup_create('text', #{hidden: 1})
2443 call assert_equal(0, popup_getpos(winid).visible)
2444 call popup_close(winid)
2450 let winid = 'make a choice'->popup_dialog(#{hidden: 1,
2455 call assert_equal(0, popup_getpos(winid).visible)
2456 call assert_equal(function('popup_filter_yesno'), popup_getoptions(winid).filter)
2457 call assert_equal(function('QuitCallback'), popup_getoptions(winid).callback)
2461 call popup_show(winid)
2471 let winid = popup_create('some text', #{highlight: 'Beautiful'})
2472 let options = popup_getoptions(winid)
2477 call popup_setoptions(winid, #{wrap: 0, drag: 1, highlight: 'Another'})
2478 let options = popup_getoptions(winid)
2483 call assert_fails('call popup_setoptions(winid, [])', 'E715:')
2484 call assert_fails('call popup_setoptions(winid, test_null_dict())', 'E715:')
2486 call popup_close(winid)
2487 call assert_equal(0, popup_setoptions(winid, options.wrap))
2491 func MyPopupFilter(x, winid, c) argument
2495 let winid = popup_create('something', #{filter: function('MyPopupFilter', [{}])})
2502 call popup_close(winid)
2507 func MyPopupFilter(winid, c) argument
2517 let winid = popup_create('something', #{filter: 'MyPopupFilter', filtermode: 'nvi'})
2532 call popup_close(winid)
2535 let winid = popup_create('something', #{filter: 'MyPopupFilter', filtermode: 'n'})
2549 call popup_close(winid)
2552 let winid = popup_create('something', #{filter: 'MyPopupFilter'})
2568 call popup_close(winid)
2573 func MyPopupFilter(winid, c) argument
2579 let winid = popup_create(['short', 'long line that will wrap', 'other'], #{
2604 \ winid: win_getid(), winrow: a:row, wincol: a:col,
2608 func AddItemInPopupBorder(tests, winid, row, col) argument
2611 \ winid: a:winid, winrow: a:row - 1, wincol: a:col - 3,
2615 func AddItemInPopupText(tests, winid, row, col, textline, textcol) argument
2618 \ winid: a:winid, winrow: a:row - 1, wincol: a:col - 3,
2635 call AddItemInPopupBorder(tests, winid, 2, c)
2636 call AddItemInPopupBorder(tests, winid, 3, c)
2637 call AddItemInPopupBorder(tests, winid, 8, c)
2638 call AddItemInPopupBorder(tests, winid, 9, c)
2642 call AddItemInPopupBorder(tests, winid, r, 4)
2643 call AddItemInPopupBorder(tests, winid, r, 5)
2644 call AddItemInPopupBorder(tests, winid, r, 18)
2645 call AddItemInPopupBorder(tests, winid, r, 19)
2648 call AddItemInPopupText(tests, winid, 4, 6, 1, 1)
2649 call AddItemInPopupText(tests, winid, 4, 10, 1, 5)
2650 call AddItemInPopupText(tests, winid, 4, 11, 1, 6)
2651 call AddItemInPopupText(tests, winid, 4, 17, 1, 6)
2653 call AddItemInPopupText(tests, winid, 5, 6, 2, 1)
2654 call AddItemInPopupText(tests, winid, 5, 10, 2, 5)
2655 call AddItemInPopupText(tests, winid, 5, 17, 2, 12)
2657 call AddItemInPopupText(tests, winid, 6, 6, 2, 13)
2658 call AddItemInPopupText(tests, winid, 6, 10, 2, 17)
2659 call AddItemInPopupText(tests, winid, 6, 17, 2, 24)
2661 call AddItemInPopupText(tests, winid, 7, 6, 3, 1)
2662 call AddItemInPopupText(tests, winid, 7, 10, 3, 5)
2663 call AddItemInPopupText(tests, winid, 7, 11, 3, 6)
2664 call AddItemInPopupText(tests, winid, 7, 17, 3, 6)
2672 call popup_close(winid)
2685 let winid = popup_create(buf, {})
2686 call assert_notequal(0, winid)
2687 let pos = popup_getpos(winid)
2692 call assert_equal(0, getwinvar(winid, '&number'))
2695 call popup_close(winid)
2696 call assert_equal({}, popup_getpos(winid))
2702 let winid = popup_create(bufnr(''), {})
2704 call popup_close(winid)
2720 let winid = popup_create(termbuf, #{minwidth: 40, minheight: 10, border: []})
2801 let winid = popup_create(bufnr, #{maxheight: 5, filter: 'BufferFilter'})
2802 call assert_equal(1, popup_getpos(winid).firstline)
2805 call assert_equal(99, popup_getpos(winid).firstline)
2807 call popup_close(winid)
2812 let winid = popup_create(repeat(['short', 'long long long line', 'medium width'], 50), #{
2817 eval winid->popup_setoptions(#{firstline: top})
2819 call assert_equal(19, popup_getpos(winid).width)
2828 let winid = popup_create(buf, {})
2830 call assert_equal(3, popup_getpos(winid).height)
2837 call assert_equal([winid], bufinfo.popups)
2839 call popup_close(winid)
2840 call assert_equal({}, popup_getpos(winid))
2939 function! MyFilter(winid, key) abort argument
2941 call win_execute(a:winid, "call setpos('.', [0, 1, 1, 0])")
2945 call win_execute(a:winid, "call setpos('.', [0, line('$'), 1, 0])")
2949 call win_execute(a:winid, "call setpos('.', [0, line('.') + 1, 1, 0])")
2953 call win_execute(a:winid, "call setpos('.', [0, line('.') - 1, 1, 0])")
2957 call popup_close(a:winid)
2995 let winid = popup_create('some text', {})
2996 call assert_equal(0, popup_getoptions(winid).cursorline)
2997 call popup_close(winid)
2999 let winid = popup_create('some text', #{ cursorline: 1, })
3000 call assert_equal(1, popup_getoptions(winid).cursorline)
3001 call popup_close(winid)
3003 let winid = popup_create('some text', #{ cursorline: v:true, })
3004 call assert_equal(1, popup_getoptions(winid).cursorline)
3005 call popup_close(winid)
3007 let winid = popup_create('some text', #{ cursorline: 0, })
3008 call assert_equal(0, popup_getoptions(winid).cursorline)
3009 call popup_close(winid)
3011 let winid = popup_menu('some text', {})
3012 call assert_equal(1, popup_getoptions(winid).cursorline)
3013 call popup_close(winid)
3015 let winid = popup_menu('some text', #{ cursorline: 1, })
3016 call assert_equal(1, popup_getoptions(winid).cursorline)
3017 call popup_close(winid)
3019 let winid = popup_menu('some text', #{ cursorline: 0, })
3020 call assert_equal(0, popup_getoptions(winid).cursorline)
3021 call popup_close(winid)
3051 function! MyFilter(winid, key) abort argument
3053 call win_execute(a:winid, "call setpos('.', [0, line('.') + 1, 1, 0]) | redraw")
3057 call popup_close(a:winid)
3081 function! MyFilter(winid, key) abort argument
3083 call win_execute(a:winid, "call setpos('.', [0, line('.') + 1, 1, 0]) | redraw")
3087 call popup_close(a:winid)
3111 let winid = popup_create(['111', '222', '333'], #{
3114 call win_execute(winid, "2")
3128 let winid = popup_create(bufnr('%'), #{
3131 call win_execute(winid, "2")
3142 var winid = popup_create('some text', { cursorline: true, })
3143 assert_equal(1, popup_getoptions(winid).cursorline)
3144 popup_close(winid)
3575 let winid = 'nothing wrong'->popup_notification({})
3576 call assert_equal(bufnr, winbufnr(winid))
3619 func CloseFilter(winid, key) argument
3621 call popup_close(a:winid)
3681 let winid = popup_create(['hello', 'bright', 'world'], {
3684 call setwinvar(winid, "&signcolumn", "yes")
3685 let winbufnr = winbufnr(winid)
3698 call setwinvar(g:winid, '&number', 1)
3699 call setwinvar(g:winid, '&foldcolumn', 2)
3700 call popup_settext(g:winid, 'a longer line to check the width')
3734 func MyPopupFilter(winid, c) argument
3738 let winid = popup_create('', #{mapping: 0, filter: 'MyPopupFilter'})
3861 let winid = popup_atcursor(repeat('x', 500), #{moved: 'any', border: []})
3864 call setwinvar(winid, '&signcolumn', 'yes')
3865 call popup_setoptions(winid, {'zindex': 1000})
3866 call assert_equal('yes', getwinvar(winid, '&signcolumn'))
3868 call popup_close(winid)
3889 let winid = win_getid()
3897 call WaitForAssert({-> assert_equal(winid, win_getid())})
3930 let winid = win_getid()
3936 call popup_setoptions(id, #{textprop: 'textprop', textpropwin: winid})
3937 call assert_equal(winid, popup_getoptions(id).textpropwin)