diff 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
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -486,6 +486,10 @@ func Test_popup_with_mask()
   call term_sendkeys(buf, ":call popup_move(winidb, {'pos': 'topright', 'col': 12})\<CR>")
   call VerifyScreenDump(buf, 'Test_popupwin_mask_4', {})
 
+  call term_sendkeys(buf, ":call popup_move(winid, {'pos': 'topright', 'col': 12, 'line': 11})\<CR>")
+  call term_sendkeys(buf, ":call popup_move(winidb, {'pos': 'topleft', 'col': 42, 'line': 11})\<CR>")
+  call VerifyScreenDump(buf, 'Test_popupwin_mask_5', {})
+
   " clean up
   call StopVimInTerminal(buf)
   call delete('XtestPopupMask')