From c463234452cf6701ebe4a65d7015434d5c96f6f7 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 13 Jul 2008 13:35:30 +1200 Subject: [PATCH] fix caching bug for s:oPath.BookmarkNames() --- plugin/NERD_tree.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 833f16e..40913b2 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -990,7 +990,7 @@ endfunction let s:oPath = {} "FUNCTION: oPath.BookmarkNames() {{{3 function! s:oPath.BookmarkNames() dict - if !exists("self.bookmark") + if !exists("self.bookmarkNames") call self.CacheDisplayString() endif return self.bookmarkNames @@ -1003,14 +1003,14 @@ function! s:oPath.CacheDisplayString() dict let self.cachedDisplayString = self.cachedDisplayString . '*' endif - let bookmarkNames = [] + let self.bookmarkNames = [] for i in s:oBookmark.Bookmarks() if i.path.Equals(self) - call add(bookmarkNames, i.name) + call add(self.bookmarkNames, i.name) endif endfor - if !empty(bookmarkNames) - let self.cachedDisplayString .= ' {' . join(bookmarkNames) . '}' + if !empty(self.bookmarkNames) + let self.cachedDisplayString .= ' {' . join(self.bookmarkNames) . '}' endif if self.isSymLink