[vim] Escape newline character when running fzf with :!

Fixes Helptags! command from fzf.vim
This commit is contained in:
Junegunn Choi 2015-09-01 01:13:35 +09:00
parent 5660cebaf6
commit 62e01a2a62

View File

@ -224,7 +224,7 @@ function! s:execute(dict, command, temps)
else else
let command = a:command let command = a:command
endif endif
execute 'silent !'.escape(command, '%#') execute 'silent !'.escape(substitute(command, '\n', '\\n', 'g'), '%#')
redraw! redraw!
if v:shell_error if v:shell_error
" Do not print error message on exit status 1 " Do not print error message on exit status 1