[vim] Shell-escape --color option generated by fzf#wrap

Fix https://github.com/junegunn/fzf.vim/issues/855
This commit is contained in:
Junegunn Choi 2019-09-09 12:12:42 +09:00
parent 5c7dcaffe8
commit 80b5bc1b68
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -254,7 +254,7 @@ endfunction
function! s:defaults() function! s:defaults()
let rules = copy(get(g:, 'fzf_colors', {})) let rules = copy(get(g:, 'fzf_colors', {}))
let colors = join(map(items(filter(map(rules, 'call("s:get_color", v:val)'), '!empty(v:val)')), 'join(v:val, ":")'), ',') let colors = join(map(items(filter(map(rules, 'call("s:get_color", v:val)'), '!empty(v:val)')), 'join(v:val, ":")'), ',')
return empty(colors) ? '' : ('--color='.colors) return empty(colors) ? '' : fzf#shellescape('--color='.colors)
endfunction endfunction
function! s:validate_layout(layout) function! s:validate_layout(layout)