diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 83e1cef56c23d54381d7329ab996ee920ac36358..46b7dfc5126401c2f3efc0f52a7dda1ae2daf142 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -50,6 +50,9 @@ if s:is_win " Use utf-8 for fzf.vim commands " Return array of shell commands for cmd.exe function! s:enc_to_cp(str) + if s:is_win && has('gui') + return iconv(a:str, 'utf-8', &encoding) + endif if !has('iconv') return a:str endif