1
0
forked from aniani/vim

patch 8.2.1592: Vim9: passing "true" to char2nr() fails

Problem:    Vim9: passing "true" to char2nr() fails.
Solution:   Use tv_get_bool_chk(). (closes #6865)
This commit is contained in:
Bram Moolenaar
2020-09-04 19:50:57 +02:00
parent c05d1c043a
commit 24f7750ffa
3 changed files with 7 additions and 1 deletions

View File

@@ -1339,6 +1339,10 @@ def Test_col()
assert_equal(5, col([1, '$']))
enddef
def Test_char2nr()
assert_equal(12354, char2nr('あ', true))
enddef
def Test_getreg_return_type()
let s1: string = getreg('"')
let s2: string = getreg('"', 1)