diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-12-06 07:26:41 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-12-06 07:40:16 +0800 |
| commit | 6f9cda0f0a9d2e38654e4a0afc4701a356efb862 (patch) | |
| tree | 32642278e18da396f819c25b29ff8b67e07cfa32 /src/nvim/testdir | |
| parent | e120a049f0e6594b317819bbc883d9040729bc93 (diff) | |
| download | rneovim-6f9cda0f0a9d2e38654e4a0afc4701a356efb862.tar.gz rneovim-6f9cda0f0a9d2e38654e4a0afc4701a356efb862.tar.bz2 rneovim-6f9cda0f0a9d2e38654e4a0afc4701a356efb862.zip | |
vim-patch:8.2.4204: screenpos() has non-zero row for invisible text
Problem: screenpos() has non-zero row for invisible text.
Solution: Only add the window row when the text is visible. (closes vim/vim#9618)
https://github.com/vim/vim/commit/7924a17791217d50be5a91989a9641bf68e7a735
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cursor_func.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_cursor_func.vim b/src/nvim/testdir/test_cursor_func.vim index 0a88bf9db3..b08eb328b7 100644 --- a/src/nvim/testdir/test_cursor_func.vim +++ b/src/nvim/testdir/test_cursor_func.vim @@ -109,7 +109,7 @@ func Test_screenpos() \ 'col': wincol + 7, \ 'curscol': wincol + 7, \ 'endcol': wincol + 7}, winid->screenpos(line('$'), 8)) - call assert_equal({'row': winrow - 1, 'col': 0, 'curscol': 0, 'endcol': 0}, + call assert_equal({'row': 0, 'col': 0, 'curscol': 0, 'endcol': 0}, \ winid->screenpos(line('$'), 22)) close |