Mercurial > vim
diff src/testdir/test_terminal3.vim @ 22093:b85e13213b11 v8.2.1596
patch 8.2.1596: using win_screenpos('.') in tests works but is wrong
Commit: https://github.com/vim/vim/commit/7dfc5ce7cf4a7f63370d7dce2e13f7410ca0230a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 5 15:05:30 2020 +0200
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).
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Sep 2020 15:15:05 +0200 |
parents | e0af4660dfc7 |
children | 2e681033d766 |
line wrap: on
line diff
--- a/src/testdir/test_terminal3.vim +++ b/src/testdir/test_terminal3.vim @@ -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)