summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-19 20:53:12 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-19 20:53:12 +0900
commitb29375c844744fb45183bdbbb6d1ff854cf23b7a (patch)
tree5a1837607c4ad6ff2c4eaf2b7797d8a6fd182db0
parent76d3f6d2489951929b06fcab81b961c7e92425bb (diff)
[vim] Minor refactoring
-rw-r--r--plugin/fzf.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 526c6e92..d4e4d26e 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -436,7 +436,7 @@ function! s:execute(dict, command, use_height, temps) abort
if has('unix') && !a:use_height
silent! !clear 2> /dev/null
endif
- let escaped = escape(substitute(a:command, '\n', '\\n', 'g'), '%#')
+ let escaped = escape(substitute(a:command, '\n', '\\n', 'g'), '%#!')
if has('gui_running')
let Launcher = get(a:dict, 'launcher', get(g:, 'Fzf_launcher', get(g:, 'fzf_launcher', s:launcher)))
let fmt = type(Launcher) == 2 ? call(Launcher, []) : Launcher
@@ -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 !'.escape(command, '!')
+ execute 'silent !'.command
endif
let exit_status = v:shell_error
redraw!