summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-05-13 03:24:28 -0400
committerJunegunn Choi <junegunn.c@gmail.com>2018-05-13 16:24:28 +0900
commitcce17ad0a02bfc0b86ed8a667113ff3c9ab79d8d (patch)
tree52b086b22dc4865122b713cc1529a872e029e3f0
parentb8296a91b94d7af73a2290564b15282d7810e9e4 (diff)
[vim] Use CRLF in batchfile for multibyte codepage (#1289)
Close #1288
-rw-r--r--plugin/fzf.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 4659f85b..4c876965 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -50,9 +50,9 @@ if s:is_win
" Use utf-8 for fzf.vim commands
" Return array of shell commands for cmd.exe
function! s:wrap_cmds(cmds)
- return ['@echo off', 'for /f "tokens=4" %%a in (''chcp'') do set origchcp=%%a', 'chcp 65001 > nul'] +
+ return map(['@echo off', 'for /f "tokens=4" %%a in (''chcp'') do set origchcp=%%a', 'chcp 65001 > nul'] +
\ (type(a:cmds) == type([]) ? a:cmds : [a:cmds]) +
- \ ['chcp %origchcp% > nul']
+ \ ['chcp %origchcp% > nul'], 'v:val."\r"')
endfunction
else
let s:term_marker = ";#FZF"