1
0
forked from aniani/vim

patch 8.2.3158: strange error message when using islocked() with a number

Problem:    Strange error message when using islocked() with a number.
            (Yegappan Lakshmanan)
Solution:   Check that the name is empty.
This commit is contained in:
Bram Moolenaar
2021-07-13 20:32:29 +02:00
parent 16e26a3116
commit 1840a7b4e3
3 changed files with 11 additions and 1 deletions

View File

@@ -95,6 +95,11 @@ func Test_test_void()
call assert_fails('let x = copy([test_void()])', 'E1031:')
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))