mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-11 16:15:46 +00:00
Fix: barbled multibyte text(exe. Japanese).
This commit is contained in:
parent
874f7dd416
commit
407205e52b
@ -50,6 +50,9 @@ if s:is_win
|
|||||||
" Use utf-8 for fzf.vim commands
|
" Use utf-8 for fzf.vim commands
|
||||||
" Return array of shell commands for cmd.exe
|
" Return array of shell commands for cmd.exe
|
||||||
function! s:enc_to_cp(str)
|
function! s:enc_to_cp(str)
|
||||||
|
if s:is_win && has('gui')
|
||||||
|
return iconv(a:str, 'utf-8', &encoding)
|
||||||
|
endif
|
||||||
if !has('iconv')
|
if !has('iconv')
|
||||||
return a:str
|
return a:str
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user