summaryrefslogtreecommitdiff
path: root/plugin/fzf.vim
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-03-13 23:04:13 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-03-13 23:04:13 +0900
commitbc2e82efc13f4fb5ad714a7de98a24dfb74b36e9 (patch)
tree5b72ff66b07ded42c2327f02a65a98f0756f5333 /plugin/fzf.vim
parentc04e8de9b008428fee658e00661983ae22430435 (diff)
downloadfzf-bc2e82efc13f4fb5ad714a7de98a24dfb74b36e9.tar.gz
[vim] Suppress error message when clear command is N/A
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 076ab919..713dfff9 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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')."'")