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

Fixes Helptags! command from fzf.vim
pull/360/head
Junegunn Choi 9 years ago
parent 5660cebaf6
commit 62e01a2a62

@ -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

Loading…
Cancel
Save