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