show how many invalid bookmarks were read
This commit is contained in:
parent
e1b369f34e
commit
ce79c243a3
@ -1517,11 +1517,11 @@ function! s:ReadBookmarks()
|
|||||||
try
|
try
|
||||||
let bookmarks[key] = s:oPath.New(path)
|
let bookmarks[key] = s:oPath.New(path)
|
||||||
catch /NERDTree.Path.InvalidArguments/
|
catch /NERDTree.Path.InvalidArguments/
|
||||||
let invalidBookmarksFound = 1
|
let invalidBookmarksFound += 1
|
||||||
endtry
|
endtry
|
||||||
endfor
|
endfor
|
||||||
if invalidBookmarksFound
|
if invalidBookmarksFound
|
||||||
call s:Echo("Invalid bookmarks were read and discarded")
|
call s:Echo(invalidBookmarksFound . " invalid bookmarks were read and discarded")
|
||||||
call s:WriteBookmarks()
|
call s:WriteBookmarks()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user