1
0
forked from aniani/vim

patch 8.2.1604: Vim9: cannot use "true" with getcompletion()

Problem:    Vim9: cannot use "true" with getcompletion().
Solution:   use tv_get_bool_chk(). (closes #6875)
This commit is contained in:
Bram Moolenaar
2020-09-05 18:31:33 +02:00
parent c08cc72947
commit d217a87755
3 changed files with 10 additions and 1 deletions

View File

@@ -1509,6 +1509,13 @@ def Test_getchar()
assert_equal(0, getchar(true))
enddef
def Test_getcompletion()
set wildignore=*.vim,*~
let l = getcompletion('run', 'file', true)
assert_equal([], l)
set wildignore&
enddef
def Fibonacci(n: number): number
if n < 2
return n