Skip to content
Myr

fixup

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 407205e · Browse files · 1 file+1 added−4 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−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:plugin/fzf.vim+1 added-4 removed
48 unmodified lines
4950 " Use utf-8 for fzf.vim commands51 " Return array of shell commands for cmd.exe52 function! s:enc_to_cp(str)53 if s:is_win && has('gui')54 return iconv(a:str, 'utf-8', &encoding)55 endif53 if !has('iconv')54 return a:str55 endif56 if !exists('s:codepage')
346 unmodified lines
403 if type == 1404 let prefix = '( '.source.' )|'405 elseif type == 3406 let temps.input = s:fzf_tempname()410 call writefile(map(source, '<SID>enc_to_cp(v:val)'), temps.input)407 call writefile(source, temps.input)408 let prefix = (s:is_win ? 'type ' : 'cat ').fzf#shellescape(temps.input).'|'409 else410 throw 'Invalid source type'411 endif
553 unmodified lines