diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-09-01 01:13:35 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-09-01 01:13:35 +0900 |
| commit | 62e01a2a62ac2d4a8ee4c87723f689516e710828 (patch) | |
| tree | df8ac5420b800fa3be145afad4a7a794cacc6d3a /plugin | |
| parent | 5660cebaf66b47f927d468422b7c1ad516c32916 (diff) | |
| download | fzf-62e01a2a62ac2d4a8ee4c87723f689516e710828.tar.gz | |
[vim] Escape newline character when running fzf with :!
Fixes Helptags! command from fzf.vim
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/fzf.vim | 2 |
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 |
