nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit bc0c64ef82dce34f904520477c861f4d2d3d5f9e
parent 702a88956bfc24a190f78bcfa98e387db6320160
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Tue,  1 Mar 2011 11:28:57 +1300

fix a bug when the bookmarks are toggled with NERDTreeMinimalUI

Diffstat:
Mplugin/NERD_tree.vim | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -3244,6 +3244,10 @@ function! s:putCursorOnBookmarkTable()
         throw "NERDTree.IllegalOperationError: cant find bookmark table, bookmarks arent active"
     endif
 
+    if g:NERDTreeMinimalUI
+        return cursor(1, 2)
+    endif
+
     let rootNodeLine = s:TreeFileNode.GetRootLineNum()
 
     let line = 1
@@ -3253,7 +3257,7 @@ function! s:putCursorOnBookmarkTable()
             throw "NERDTree.BookmarkTableNotFoundError: didnt find the bookmarks table"
         endif
     endwhile
-    call cursor(line, 0)
+    call cursor(line, 2)
 endfunction
 
 "FUNCTION: s:putCursorInTreeWin(){{{2