comparison src/testdir/test_popupwin.vim @ 17332:61f0bf94ef92 v8.1.1665

patch 8.1.1665: crash when popup window with mask is below the screen commit https://github.com/vim/vim/commit/b4207474780569bcc9840e03f13edb5d9c2554f5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 12 16:05:45 2019 +0200 patch 8.1.1665: crash when popup window with mask is below the screen Problem: Crash when popup window with mask is below the screen. Solution: Correct boundary check.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jul 2019 16:15:04 +0200
parents b60402471f69
children 1ac1d34bbdbf
comparison
equal deleted inserted replaced
17331:c3dcc589da00 17332:61f0bf94ef92
483 call VerifyScreenDump(buf, 'Test_popupwin_mask_3', {}) 483 call VerifyScreenDump(buf, 'Test_popupwin_mask_3', {})
484 484
485 call term_sendkeys(buf, ":call popup_move(winid, {'pos': 'topright', 'col': 12, 'line': 2})\<CR>") 485 call term_sendkeys(buf, ":call popup_move(winid, {'pos': 'topright', 'col': 12, 'line': 2})\<CR>")
486 call term_sendkeys(buf, ":call popup_move(winidb, {'pos': 'topright', 'col': 12})\<CR>") 486 call term_sendkeys(buf, ":call popup_move(winidb, {'pos': 'topright', 'col': 12})\<CR>")
487 call VerifyScreenDump(buf, 'Test_popupwin_mask_4', {}) 487 call VerifyScreenDump(buf, 'Test_popupwin_mask_4', {})
488
489 call term_sendkeys(buf, ":call popup_move(winid, {'pos': 'topright', 'col': 12, 'line': 11})\<CR>")
490 call term_sendkeys(buf, ":call popup_move(winidb, {'pos': 'topleft', 'col': 42, 'line': 11})\<CR>")
491 call VerifyScreenDump(buf, 'Test_popupwin_mask_5', {})
488 492
489 " clean up 493 " clean up
490 call StopVimInTerminal(buf) 494 call StopVimInTerminal(buf)
491 call delete('XtestPopupMask') 495 call delete('XtestPopupMask')
492 endfunc 496 endfunc