Mercurial > vim
diff src/testdir/test_popupwin.vim @ 17101:1a23650f8da5 v8.1.1550
patch 8.1.1550: when a popup has left padding text may be cut off
commit https://github.com/vim/vim/commit/51c313104096c7af5024aebbf295f7f03486874b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 15 22:27:23 2019 +0200
patch 8.1.1550: when a popup has left padding text may be cut off
Problem: When a popup has left padding text may be cut off.
Solution: Add the border and padding when computing the size.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jun 2019 22:30:05 +0200 |
parents | 94007c802045 |
children | 0001d10a7661 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -87,6 +87,8 @@ func Test_popup_with_border_and_padding( \ "call popup_create('hello both', {'line': 2, 'col': 43, 'border': [], 'padding': []})", \ "call popup_create('border TL', {'line': 6, 'col': 3, 'border': [1, 0, 0, 4]})", \ "call popup_create('paddings', {'line': 6, 'col': 23, 'padding': [1, 3, 2, 4]})", + \ "call popup_create('wrapped longer text', {'line': 8, 'col': 55, 'padding': [0, 3, 0, 3], 'border': [0, 1, 0, 1]})", + \ "call popup_create('right aligned text', {'line': 11, 'col': 56, 'wrap': 0, 'padding': [0, 3, 0, 3], 'border': [0, 1, 0, 1]})", \], 'XtestPopupBorder') let buf = RunVimInTerminal('-S XtestPopupBorder', {'rows': 15}) call VerifyScreenDump(buf, 'Test_popupwin_2' .. iter, {})