1
0
forked from aniani/vim

patch 8.2.1603: Vim9: cannot use "true" with getchar()

Problem:    Vim9: cannot use "true" with getchar().
Solution:   use tv_get_bool_chk(). (closes #6874)
This commit is contained in:
Bram Moolenaar
2020-09-05 17:51:23 +02:00
parent 036c2cf719
commit c08cc72947
3 changed files with 7 additions and 1 deletions

View File

@@ -1505,6 +1505,10 @@ def Test_getbufinfo()
bwipe Xtestfile1 Xtestfile2
enddef
def Test_getchar()
assert_equal(0, getchar(true))
enddef
def Fibonacci(n: number): number
if n < 2
return n