nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 0a73777381a550880f3ce54f9098d4b2ae17215d
parent 176b551af0cf5ce34c4d74a0d15aa48943471a5e
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Mon, 16 Jun 2008 20:54:28 +1200

bugfix for reading files with invalid bookmark syntax

Diffstat:
Mplugin/NERD_tree.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1502,8 +1502,8 @@ function! s:ReadBookmarks()
         let bookmarkStrings = readfile(g:NERDTreeBookmarksFile)
         let invalidBookmarksFound = 0
         for i in bookmarkStrings
-            let key = substitute(i, '^\(\w.\{-}\) .*$', '\1', '')
-            let path = substitute(i, '^\w.\{-} \(.*\)$', '\1', '')
+            let key = substitute(i, '^\(\w\{-}\) .*$', '\1', '')
+            let path = substitute(i, '^\w\{-} \(.*\)$', '\1', '')
 
             try
                 let bookmarks[key] = s:oPath.New(path)