[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
let command = a:command
endif
execute 'silent !'.escape(command, '%#')
execute 'silent !'.escape(substitute(command, '\n', '\\n', 'g'), '%#')
redraw!
if v:shell_error
" Do not print error message on exit status 1