2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-16 12:12:48 +00:00

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

This commit is contained in:
Junegunn Choi 2015-03-13 23:04:13 +09:00
parent c04e8de9b0
commit bc2e82efc1

View File

@ -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')."'")