Mercurial > vim
diff src/testdir/test_popupwin.vim @ 18432:ee8db42dacf6 v8.1.2210
patch 8.1.2210: using negative offset for popup_create() does not work
Commit: https://github.com/vim/vim/commit/b754b5bf6d9ac1f3654552973aa6f9c11239af3d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 24 19:25:00 2019 +0200
patch 8.1.2210: using negative offset for popup_create() does not work
Problem: Using negative offset for popup_create() does not work.
Solution: Use -1 instead of zero. (closes https://github.com/vim/vim/issues/5111)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Oct 2019 19:30:03 +0200 |
parents | 21c25bee9df8 |
children | 41a5f241e9d5 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -278,7 +278,7 @@ func Test_popup_all_corners() \ border: [], \ padding: [], \ }) - normal 25|r@ + normal 24|r@ let winid1 = popup_create(['First', 'SeconD'], #{ \ line: 'cursor+1', \ col: 'cursor', @@ -286,7 +286,7 @@ func Test_popup_all_corners() \ border: [], \ padding: [], \ }) - normal 9G29|r% + normal 9G27|r% let winid1 = popup_create(['fiRSt', 'seCOnd'], #{ \ line: 'cursor-1', \ col: 'cursor', @@ -294,7 +294,7 @@ func Test_popup_all_corners() \ border: [], \ padding: [], \ }) - normal 51|r& + normal 48|r& let winid1 = popup_create(['FIrsT', 'SEcoND'], #{ \ line: 'cursor-1', \ col: 'cursor', @@ -302,6 +302,14 @@ func Test_popup_all_corners() \ border: [], \ padding: [], \ }) + normal 1G51|r* + let winid1 = popup_create(['one', 'two'], #{ + \ line: 'cursor-1', + \ col: 'cursor', + \ pos: 'botleft', + \ border: [], + \ padding: [], + \ }) END call writefile(lines, 'XtestPopupCorners') let buf = RunVimInTerminal('-S XtestPopupCorners', #{rows: 12})