Skip to content
Browse files

Made all vimgrep calls to be silent (fixes #2)

  • Loading branch information...
1 parent f00af0b commit cdc98533b8f459c2b8be5ca2c110c76e7f7284cd @luizribeiro committed May 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/javacomplete.vim
View
4 autoload/javacomplete.vim
@@ -382,7 +382,7 @@ fu! s:complete_after_word(incomplete)
for dirpath in s:get_source_dirs(expand('%:p'))
let filepatterns .= escape(dirpath, ' \') . '/*.java '
endfor
- exe 'vimgrep /\s*' . s:RE_TYPE_DECL . '/jg ' . filepatterns
+ exe 'silent vimgrep /\s*' . s:RE_TYPE_DECL . '/jg ' . filepatterns
for item in getqflist()
if item.text !~ '^\s*\*\s\+'
let text = matchstr(s:prune(item.text, -1), '\s*' . s:RE_TYPE_DECL)
@@ -2292,7 +2292,7 @@ fu! s:get_fqn(fqns, srcpath, ...)
let cwd = fnamemodify(expand('%:p:h'), ':p:h:gs?[\\/]\+?/?')
try
- exe 'vimgrep /\s*' . s:RE_TYPE_DECL . '/jg ' . filepatterns
+ exe 'silent vimgrep /\s*' . s:RE_TYPE_DECL . '/jg ' . filepatterns
for item in getqflist()
if item.text !~ '^\s*\*\s\+'
let text = matchstr(s:prune(item.text, -1), '\s*' . s:RE_TYPE_DECL)

0 comments on commit cdc9853

Please sign in to comment.
Something went wrong with that request. Please try again.