1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Check for out of sync configurations

This commit is contained in:
Jan Larres
2011-06-20 16:29:57 +12:00
parent e84efc3366
commit 5da16328b6

View File

@@ -1772,7 +1772,13 @@ function! s:ParseTagline(part1, part2, typeinfo, fileinfo)
let taginfo.fileinfo = a:fileinfo
" Needed for folding
call taginfo.initFoldState()
try
call taginfo.initFoldState()
catch /^Vim(\a\+):E716:/ " 'Key not present in Dictionary'
" The tag has a 'kind' that doesn't exist in the type definition
echoerr 'Your ctags and Tagbar configurations are out of sync!'
\ 'Please read '':help tagbar-extend''.'
endtry
return taginfo
endfunction