diff src/testdir/test_popupwin.vim @ 18665:7369756d05de v8.1.2324

patch 8.1.2324: with of scrollbar in popup menu not taken into account Commit: https://github.com/vim/vim/commit/202c3f7e3e5a90135ad37100fbfd6583c84a6c99 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 21 12:12:35 2019 +0100 patch 8.1.2324: with of scrollbar in popup menu not taken into account Problem: With of scrollbar in popup menu not taken into account. Solution: Add the width of the scrollbar.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Nov 2019 12:15:06 +0100
parents 3089b422b9dc
children aa385f88f900
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2896,6 +2896,12 @@ func Test_popupmenu_info_border()
   call term_sendkeys(buf, "\<C-N>\<C-N>")
   call VerifyScreenDump(buf, 'Test_popupwin_infopopup_5', {})
 
+  " Test that the popupmenu's scrollbar and infopopup do not overlap
+  call term_sendkeys(buf, "\<Esc>")
+  call term_sendkeys(buf, ":set pumheight=3\<CR>")
+  call term_sendkeys(buf, "cc\<C-X>\<C-U>")
+  call VerifyScreenDump(buf, 'Test_popupwin_infopopup_6', {})
+
   call StopVimInTerminal(buf)
   call delete('XtestInfoPopup')
 endfunc