bugfix for reading files with invalid bookmark syntax

This commit is contained in:
Martin Grenfell 2008-06-16 20:54:28 +12:00
parent 176b551af0
commit 0a73777381

View File

@ -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)