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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user