comparison src/testdir/test_popupwin.vim @ 16794:ddfa924df50d v8.1.1399

patch 8.1.1399: popup windows not adjusted when switching tabs commit https://github.com/vim/vim/commit/ec58384afa0dc1678afd7b8d19b4645ac2f73f42 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 26 14:11:23 2019 +0200 patch 8.1.1399: popup windows not adjusted when switching tabs Problem: Popup windows not adjusted when switching tabs. Solution: Save and restore first_tab_popupwin. Fix closing a tabpage.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 May 2019 14:15:06 +0200
parents eda4d65f232c
children 12e3a3afdb6a
comparison
equal deleted inserted replaced
16793:c7a0f8ed435d 16794:ddfa924df50d
18 \ "let winid2 = popup_create(['another one', 'another two', 'another three'], {'line': 3, 'col': 25})", 18 \ "let winid2 = popup_create(['another one', 'another two', 'another three'], {'line': 3, 'col': 25})",
19 \], 'XtestPopup') 19 \], 'XtestPopup')
20 let buf = RunVimInTerminal('-S XtestPopup', {'rows': 10}) 20 let buf = RunVimInTerminal('-S XtestPopup', {'rows': 10})
21 call VerifyScreenDump(buf, 'Test_popupwin_01', {}) 21 call VerifyScreenDump(buf, 'Test_popupwin_01', {})
22 22
23 " Add a tabpage
24 call term_sendkeys(buf, ":tabnew\<CR>")
25 call term_sendkeys(buf, ":call popup_create('other tab', {'line': 4, 'col': 9})\<CR>")
26 call VerifyScreenDump(buf, 'Test_popupwin_02', {})
27
28 " switch back to first tabpage
29 call term_sendkeys(buf, "gt")
30 call VerifyScreenDump(buf, 'Test_popupwin_03', {})
31
32 " close that tabpage
33 call term_sendkeys(buf, ":quit!\<CR>")
34 call VerifyScreenDump(buf, 'Test_popupwin_04', {})
35
23 " clean up 36 " clean up
24 call StopVimInTerminal(buf) 37 call StopVimInTerminal(buf)
25 call delete('XtestPopup') 38 call delete('XtestPopup')
26 endfunc 39 endfunc