diff options
author | nekowasabi <nolifeking00@gmail.com> | 2020-10-27 17:16:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 17:16:47 +0900 |
commit | 407205e52ba3e4e0f51b94791b1ca63c81320dd6 (patch) | |
tree | a0a554ead2ce61144534cab545b25b09e7a7a9c2 /plugin | |
parent | 874f7dd416a4098d657dce7f307b60485993eea1 (diff) |
Fix: barbled multibyte text(exe. Japanese).
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 83e1cef5..46b7dfc5 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 |