[vim] Suppress error message when clear command is N/A

pull/148/merge
Junegunn Choi 9 years ago
parent c04e8de9b0
commit bc2e82efc1

@ -171,7 +171,7 @@ endfunction
function! s:execute(dict, command, temps)
call s:pushd(a:dict)
silent !clear
silent! !clear 2> /dev/null
if has('gui_running')
let launcher = get(a:dict, 'launcher', get(g:, 'fzf_launcher', s:launcher))
let command = printf(launcher, "'".substitute(a:command, "'", "'\"'\"'", 'g')."'")

Loading…
Cancel
Save