only attempt to open marks file if it exists

This commit is contained in:
Martin Grenfell 2008-06-08 19:16:38 +12:00
parent 140deac284
commit 995f7faec3

View File

@ -1439,6 +1439,7 @@ endfunction
" Function: s:ReadMarks() {{{2
function! s:ReadMarks()
if filereadable(g:NERDTreeMarksFile)
let marks = s:GetMarks()
let markStrings = readfile(g:NERDTreeMarksFile)
for i in markStrings
@ -1447,6 +1448,7 @@ function! s:ReadMarks()
let marks[key] = s:oPath.New(path)
endfor
call s:RenderView()
endif
endfunction
" Function: s:TreeExistsForTab() {{{2
" Returns 1 if a nerd tree root exists in the current tab