Get rid of PrintWarningMsg()

This commit is contained in:
Jan Larres 2011-02-09 18:17:22 +13:00
parent cbb6a5f7ba
commit a21290dbdc

View File

@ -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()