aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 11:53:38 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 12:20:46 -0400
commitb89c08901c1e619b9aeca6f109f6ba73a7be4e9f (patch)
tree140e2d99f095c0739740189755f619306a6f3f0d /src/nvim/testdir
parentb5cfac089409faf17a290d4bfe1b669212e2984e (diff)
downloadrneovim-b89c08901c1e619b9aeca6f109f6ba73a7be4e9f.tar.gz
rneovim-b89c08901c1e619b9aeca6f109f6ba73a7be4e9f.tar.bz2
rneovim-b89c08901c1e619b9aeca6f109f6ba73a7be4e9f.zip
vim-patch:8.0.1364: there is no easy way to get the window position
Problem: There is no easy way to get the window position. Solution: Add win_screenpos(). https://github.com/vim/vim/commit/22044dc31788d9f1c2da7725269884d9923b4795
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_window_cmd.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim
index ad60c8d3c7..b3ab6957dc 100644
--- a/src/nvim/testdir/test_window_cmd.vim
+++ b/src/nvim/testdir/test_window_cmd.vim
@@ -374,6 +374,19 @@ func Test_equalalways_on_close()
set equalalways&
endfunc
+func Test_win_screenpos()
+ call assert_equal(1, winnr('$'))
+ split
+ vsplit
+ 10wincmd _
+ 30wincmd |
+ call assert_equal([1, 1], win_screenpos(1))
+ call assert_equal([1, 32], win_screenpos(2))
+ call assert_equal([12, 1], win_screenpos(3))
+ call assert_equal([0, 0], win_screenpos(4))
+ only
+endfunc
+
func Test_window_jump_tag()
help
/iccf