mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-08 16:12:09 -07:00
[vim] Escape newline character when running fzf with :!
Fixes Helptags! command from fzf.vim
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user