diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-06-20 22:12:50 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-06-20 22:15:12 +0900 |
commit | 07a03b3e739e146182062b1b7f84507569cfdbec (patch) | |
tree | 8201fc8b771281e88280a730d29b3e096b5d3c64 /plugin | |
parent | 06d63a862e900dcc6ee6c2335120cc8cb939698f (diff) |
[vim] Make fzf#wrap support v:true and v:false as well
Fix #2087
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 06ef99ad..e3a11179 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 |