comparison src/testdir/test_popupwin.vim @ 17815:9ec2526c04c5 v8.1.1904

patch 8.1.1904: cannot have an info popup align with the popup menu Commit: https://github.com/vim/vim/commit/258cef59d8c53a5b1c04937c826dc133ad5710e2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 21 17:29:29 2019 +0200 patch 8.1.1904: cannot have an info popup align with the popup menu Problem: Cannot have an info popup align with the popup menu. Solution: Add the "align" item to 'completepopup'.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Aug 2019 17:30:03 +0200
parents b5499bf22a97
children e8a7029efa40
comparison
equal deleted inserted replaced
17814:f15ace2530db 17815:9ec2526c04c5
2290 2290
2291 call StopVimInTerminal(buf) 2291 call StopVimInTerminal(buf)
2292 call delete('XtestInfoPopupNb') 2292 call delete('XtestInfoPopupNb')
2293 endfunc 2293 endfunc
2294 2294
2295 func Test_popupmenu_info_align_menu()
2296 CheckScreendump
2297
2298 let lines = Get_popupmenu_lines()
2299 call add(lines, 'set completepopup=height:4,border:off,align:menu')
2300 call writefile(lines, 'XtestInfoPopupNb')
2301
2302 let buf = RunVimInTerminal('-S XtestInfoPopupNb', #{rows: 14})
2303 call term_wait(buf, 50)
2304
2305 call term_sendkeys(buf, "A\<C-X>\<C-U>")
2306 call term_sendkeys(buf, "\<C-N>")
2307 call term_sendkeys(buf, "\<C-N>")
2308 call term_sendkeys(buf, "\<C-N>")
2309 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_align_1', {})
2310
2311 call term_sendkeys(buf, "test text test text test\<C-X>\<C-U>")
2312 call term_sendkeys(buf, "\<C-N>")
2313 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_align_2', {})
2314
2315 call term_sendkeys(buf, "\<Esc>")
2316 call term_sendkeys(buf, ":call setline(2, ['x']->repeat(10))\<CR>")
2317 call term_sendkeys(buf, "Gotest text test text\<C-X>\<C-U>")
2318 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_align_3', {})
2319
2320 call StopVimInTerminal(buf)
2321 call delete('XtestInfoPopupNb')
2322 endfunc
2323
2295 " vim: shiftwidth=2 sts=2 2324 " vim: shiftwidth=2 sts=2