bugfix for reading files with invalid bookmark syntax
This commit is contained in:
parent
176b551af0
commit
0a73777381
@ -1502,8 +1502,8 @@ function! s:ReadBookmarks()
|
|||||||
let bookmarkStrings = readfile(g:NERDTreeBookmarksFile)
|
let bookmarkStrings = readfile(g:NERDTreeBookmarksFile)
|
||||||
let invalidBookmarksFound = 0
|
let invalidBookmarksFound = 0
|
||||||
for i in bookmarkStrings
|
for i in bookmarkStrings
|
||||||
let key = substitute(i, '^\(\w.\{-}\) .*$', '\1', '')
|
let key = substitute(i, '^\(\w\{-}\) .*$', '\1', '')
|
||||||
let path = substitute(i, '^\w.\{-} \(.*\)$', '\1', '')
|
let path = substitute(i, '^\w\{-} \(.*\)$', '\1', '')
|
||||||
|
|
||||||
try
|
try
|
||||||
let bookmarks[key] = s:oPath.New(path)
|
let bookmarks[key] = s:oPath.New(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user