Skip to content
Snippets Groups Projects
Unverified Commit 07a03b3e authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] Make fzf#wrap support v:true and v:false as well

Fix #2087
parent 06d63a86
No related branches found
No related tags found
No related merge requests found
...@@ -297,7 +297,7 @@ function! fzf#wrap(...) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment