mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-24 08:50:54 +08:00
Get rid of PrintWarningMsg()
This commit is contained in:
parent
cbb6a5f7ba
commit
a21290dbdc
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user