Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix https://github.com/junegunn/fzf.vim/issues/855

authored by Junegunn Choi · committed by Junegunn Choi · parent 5c7dcaf · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
252 unmodified lines
253254function! s:defaults()255 let rules = copy(get(g:, 'fzf_colors', {}))256 let colors = join(map(items(filter(map(rules, 'call("s:get_color", v:val)'), '!empty(v:val)')), 'join(v:val, ":")'), ',')257 return empty(colors) ? '' : ('--color='.colors)257 return empty(colors) ? '' : fzf#shellescape('--color='.colors)258endfunction259260function! s:validate_layout(layout)261 for key in keys(a:layout)
552 unmodified lines