Mercurial > vim
diff src/testdir/test_terminal.vim @ 17912:9fac6d0de69a v8.1.1952
patch 8.1.1952: more functions can be used as a method
Commit: https://github.com/vim/vim/commit/5d69fdb7c4b91faf2d92b8d449cc9460f3035fb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 31 19:13:58 2019 +0200
patch 8.1.1952: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Aug 2019 19:15:03 +0200 |
parents | ba18f78c8529 |
children | 049a7481d737 |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -2066,6 +2066,9 @@ func Test_terminal_getwinpos() " In the GUI it can be more, let's assume a 20 x 14 cell. " And then add 100 / 200 tolerance. let [xroot, yroot] = getwinpos() + let winpos = 50->getwinpos() + call assert_equal(xroot, winpos[0]) + call assert_equal(yroot, winpos[1]) let [winrow, wincol] = win_screenpos('.') let xoff = wincol * (has('gui_running') ? 14 : 7) + 100 let yoff = winrow * (has('gui_running') ? 20 : 10) + 200