diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 2ed557a..cfef43e 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -1010,9 +1010,9 @@ function! s:ProcessFile(fname, ftype) if v:shell_error let msg = 'Tagbar: Could not generate tags for ' . a:fname - call s:PrintWarningMsg(msg) + echohl WarningMsg | echomsg msg | echohl None if !empty(ctags_output) - call s:PrintWarningMsg(ctags_output) + echohl WarningMsg | echomsg ctags_output | echohl None endif return endif @@ -1740,13 +1740,6 @@ function! TagbarGenerateStatusline() return text endfunction -" s:PrintWarningMsg() {{{1 -function! s:PrintWarningMsg(msg) - echohl WarningMsg - echomsg a:msg - echohl None -endfunction - " Commands {{{1 command! -nargs=0 TagbarToggle call s:ToggleWindow() command! -nargs=0 TagbarOpen call s:OpenWindow()