aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-06 07:52:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-06 08:00:17 +0800
commit0909d987fe925483dc513ae330179339899cd0a5 (patch)
treea1d31135893f8f50bec0290bce93c78e8b4ba53f /src/nvim/testdir
parent10af0549df7ac4ea9907b34624228755b9752318 (diff)
downloadrneovim-0909d987fe925483dc513ae330179339899cd0a5.tar.gz
rneovim-0909d987fe925483dc513ae330179339899cd0a5.tar.bz2
rneovim-0909d987fe925483dc513ae330179339899cd0a5.zip
vim-patch:9.0.1011: ml_get error when using screenpos()
Problem: ml_get error when using screenpos(). Solution: Give an error for the line number. (closes vim/vim#11661) https://github.com/vim/vim/commit/99d19438cabaf13074229d9a32e3a4af9ce98744 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cursor_func.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cursor_func.vim b/src/nvim/testdir/test_cursor_func.vim
index ad78adfc09..634b27b0ed 100644
--- a/src/nvim/testdir/test_cursor_func.vim
+++ b/src/nvim/testdir/test_cursor_func.vim
@@ -155,6 +155,9 @@ func Test_screenpos_number()
let pos = screenpos(winid, 1, 66)
call assert_equal(winrow, pos.row)
call assert_equal(wincol + 66 + 3, pos.col)
+
+ call assert_fails('echo screenpos(0, 2, 1)', 'E966:')
+
close
bwipe!
endfunc