Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes Helptags! command from fzf.vim

authored by Junegunn Choi · committed by Junegunn Choi · parent 5660ceb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
222 unmodified lines
223 let command = printf(fmt, "'".substitute(a:command, "'", "'\"'\"'", 'g')."'")224 else225 let command = a:command226 endif227 execute 'silent !'.escape(command, '%#')227 execute 'silent !'.escape(substitute(command, '\n', '\\n', 'g'), '%#')228 redraw!229 if v:shell_error230 " Do not print error message on exit status 1231 if v:shell_error > 1
187 unmodified lines