nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit c463234452cf6701ebe4a65d7015434d5c96f6f7
parent b1020ad9c80963a9d676c89fec36e221660e7da6
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sun, 13 Jul 2008 13:35:30 +1200

fix caching bug for s:oPath.BookmarkNames()

Diffstat:
Mplugin/NERD_tree.vim | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git 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