From 5da16328b6d1038fa9a71292fbf16ced548241ec Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 20 Jun 2011 16:29:57 +1200 Subject: [PATCH] Check for out of sync configurations --- plugin/tagbar.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index bcb1b94..9b6f3c9 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -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