]> granicus.if.org Git - vim/commitdiff
patch 8.2.1596: using win_screenpos('.') in tests works but is wrong v8.2.1596
authorBram Moolenaar <Bram@vim.org>
Sat, 5 Sep 2020 13:05:30 +0000 (15:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Sep 2020 13:05:30 +0000 (15:05 +0200)
Problem:    Using win_screenpos('.') in tests works but is wrong.
Solution:   Use win_screenpos(0).

src/testdir/test_terminal3.vim
src/version.c

index e982190168e94d256d744033aaf9c0d3ea8fb5b2..a3b8c1c2b7145cc84c5419cdd9f7a8440ae02db1 100644 (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)
index b43e393978e498a39c979257b4214e6cd9616bda..4725e615842960391a181d8cfd781619f9bae975 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1596,
 /**/
     1595,
 /**/