mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 15:18:23 +08:00
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 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user