summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-09-01 01:13:35 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-09-01 01:13:35 +0900
commit62e01a2a62ac2d4a8ee4c87723f689516e710828 (patch)
treedf8ac5420b800fa3be145afad4a7a794cacc6d3a
parent5660cebaf66b47f927d468422b7c1ad516c32916 (diff)
[vim] Escape newline character when running fzf with :!
Fixes Helptags! command from fzf.vim
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index f0461b20..65b4aff7 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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