summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-05 15:05:30 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-05 15:05:30 +0200
commit7dfc5ce7cf4a7f63370d7dce2e13f7410ca0230a (patch)
tree0c99469f955b6a6d714f674c27d6db25c354c534
parent86394aa9720c5e087d85831e42d44e042987fbc0 (diff)
downloadvim-git-7dfc5ce7cf4a7f63370d7dce2e13f7410ca0230a.tar.gz
patch 8.2.1596: using win_screenpos('.') in tests works but is wrongv8.2.1596
Problem: Using win_screenpos('.') in tests works but is wrong. Solution: Use win_screenpos(0).
-rw-r--r--src/testdir/test_terminal3.vim2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_terminal3.vim b/src/testdir/test_terminal3.vim
index e98219016..a3b8c1c2b 100644
--- 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)
diff --git a/src/version.c b/src/version.c
index b43e39397..4725e6158 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1596,
+/**/
1595,
/**/
1594,