0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.1596: using win_screenpos('.') in tests works but is wrong

Problem:    Using win_screenpos('.') in tests works but is wrong.
Solution:   Use win_screenpos(0).
This commit is contained in:
Bram Moolenaar 2020-09-05 15:05:30 +02:00
parent 86394aa972
commit 7dfc5ce7cf
2 changed files with 3 additions and 1 deletions

View File

@ -551,7 +551,7 @@ func Test_terminal_getwinpos()
let winpos = 50->getwinpos()
call assert_equal(xroot, winpos[0])
call assert_equal(yroot, winpos[1])
let [winrow, wincol] = win_screenpos('.')
let [winrow, wincol] = win_screenpos(0)
let xoff = wincol * (has('gui_running') ? 14 : 7) + 100
let yoff = winrow * (has('gui_running') ? 20 : 10) + 200
call assert_inrange(xroot + 2, xroot + xoff, xpos)

View File

@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1596,
/**/
1595,
/**/