mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
parent
06d63a862e
commit
07a03b3e73
@ -297,7 +297,7 @@ function! fzf#wrap(...)
|
|||||||
let expects = map(copy(args), 'type(v:val)')
|
let expects = map(copy(args), 'type(v:val)')
|
||||||
let tidx = 0
|
let tidx = 0
|
||||||
for arg in copy(a:000)
|
for arg in copy(a:000)
|
||||||
let tidx = index(expects, type(arg), tidx)
|
let tidx = index(expects, type(arg) == 6 ? type(0) : type(arg), tidx)
|
||||||
if tidx < 0
|
if tidx < 0
|
||||||
throw 'Invalid arguments (expected: [name string] [opts dict] [fullscreen boolean])'
|
throw 'Invalid arguments (expected: [name string] [opts dict] [fullscreen boolean])'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user