diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-24 18:29:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 18:29:17 +0800 |
commit | 8db9a0e5a26616a84903ca29cd5a877df9037bd8 (patch) | |
tree | 56fd141e43a2a9fcb3f894ee1e38996fffc0b80a /test | |
parent | a616272f568a9492580abfd22ab460457ecdbfa3 (diff) | |
download | rneovim-8db9a0e5a26616a84903ca29cd5a877df9037bd8.tar.gz rneovim-8db9a0e5a26616a84903ca29cd5a877df9037bd8.tar.bz2 rneovim-8db9a0e5a26616a84903ca29cd5a877df9037bd8.zip |
vim-patch:8.2.3158: strange error message when using islocked() with a number (#28962)
Problem: Strange error message when using islocked() with a number.
(Yegappan Lakshmanan)
Solution: Check that the name is empty.
https://github.com/vim/vim/commit/1840a7b4e3577e617f724c9d07ccc78195cc010a
Use ll_name_len instead.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_functions.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index 7c712818f9..18d0d9aa5d 100644 --- a/test/old/testdir/test_functions.vim +++ b/test/old/testdir/test_functions.vim @@ -98,6 +98,11 @@ func Test_err_teapot() call assert_fails('call err_teapot(expr)', "E503: Coffee is currently not available") endfunc +func Test_islocked() + call assert_fails('call islocked(99)', 'E475:') + call assert_fails('call islocked("s: x")', 'E488:') +endfunc + func Test_len() call assert_equal(1, len(0)) call assert_equal(2, len(12)) |