Skip to content
Myr

[vim] Use iconv only if +iconv is enabled (#1813)

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

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent 577024f · Browse files · 1 file+6 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+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:plugin/fzf.vim+6 added-1 removed
47 unmodified lines
48 endfunction4950 " Use utf-8 for fzf.vim commands51 " Return array of shell commands for cmd.exe52 let s:codepage = libcallnr('kernel32.dll', 'GetACP', 0)52 function! s:enc_to_cp(str)53 if !has('iconv')54 return a:str55 endif56 if !exists('s:codepage')57 let s:codepage = libcallnr('kernel32.dll', 'GetACP', 0)58 endif59 return iconv(a:str, &encoding, 'cp'.s:codepage)60 endfunction61 function! s:wrap_cmds(cmds)62 return map([
774 unmodified lines