From 392de7da25ac2778324407e7d148dfefed2f4d2f Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Wed, 1 Feb 2012 00:21:28 +1300 Subject: [PATCH] Save new empty object for file if ctags output is empty, closes #57 --- autoload/tagbar.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index d8c4133..bdc7fc6 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1617,6 +1617,9 @@ function! s:ProcessFile(fname, ftype) return elseif ctags_output == '' call s:LogDebugMessage('Ctags output empty') + " No need to go through the tag processing if there are no tags, and + " preserving the old fold state also isn't necessary + call s:known_files.put(s:FileInfo.New(a:fname, a:ftype), a:fname) return endif