From 07a03b3e739e146182062b1b7f84507569cfdbec Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 20 Jun 2020 22:12:50 +0900 Subject: [PATCH] [vim] Make fzf#wrap support v:true and v:false as well Fix #2087 --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 06ef99a..e3a1117 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -297,7 +297,7 @@ function! fzf#wrap(...) let expects = map(copy(args), 'type(v:val)') let tidx = 0 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 throw 'Invalid arguments (expected: [name string] [opts dict] [fullscreen boolean])' endif