summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-19 20:47:44 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-19 20:47:44 +0900
commit76d3f6d2489951929b06fcab81b961c7e92425bb (patch)
tree431312eaeed9af55cb06a634bc4b357c03678c63 /plugin
parente87a85a1791877b6850298d7def7a253540a891c (diff)
downloadfzf-76d3f6d2489951929b06fcab81b961c7e92425bb.tar.gz
[vim] Escape ! when using :! to execute command
- call fzf#run({'source': "echo '!'"}) - call fzf#run({'source': "echo '!'", 'down': '40%'}) Close https://github.com/junegunn/fzf.vim/issues/315
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index ba2414e3..526c6e92 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -451,7 +451,7 @@ function! s:execute(dict, command, use_height, temps) abort
let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'
call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))
else
- execute 'silent !'.command
+ execute 'silent !'.escape(command, '!')
endif
let exit_status = v:shell_error
redraw!