[vim] Escape newline character when running fzf with :!
Fixes Helptags! command from fzf.vim
This commit is contained in:
parent
5660cebaf6
commit
62e01a2a62
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user