From 17064c6978f7c0ee5fba4fae9e8c2496e162023f Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sun, 27 Mar 2011 19:47:56 +1300 Subject: [PATCH] Make foldlevel work like the built-in version --- plugin/tagbar.vim | 99 +++++++++++++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 37 deletions(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index dec2613..ffc0eb8 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -83,6 +83,7 @@ function! s:InitTypes() " Dictionary of the already processed files, indexed by file name with " complete path. " The entries are again dictionaries with the following fields: + " - fpath: The complete file path " - mtime: File modification time " - ftype: The vim file type " - tags: List of the tags that are present in the file, sorted @@ -93,6 +94,7 @@ function! s:InitTypes() " name " - tagfolds: Dictionary of dictionaries of the folding state of " individual tags, indexed by kind and full path + " - foldlevel: The current foldlevel of the file let s:known_files = {} let s:known_types = {} @@ -783,15 +785,17 @@ function! s:MapKeys() \ :call JumpToTag() nnoremap