mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
only attempt to open marks file if it exists
This commit is contained in:
parent
140deac284
commit
995f7faec3
|
@ -1439,6 +1439,7 @@ endfunction
|
||||||
|
|
||||||
" Function: s:ReadMarks() {{{2
|
" Function: s:ReadMarks() {{{2
|
||||||
function! s:ReadMarks()
|
function! s:ReadMarks()
|
||||||
|
if filereadable(g:NERDTreeMarksFile)
|
||||||
let marks = s:GetMarks()
|
let marks = s:GetMarks()
|
||||||
let markStrings = readfile(g:NERDTreeMarksFile)
|
let markStrings = readfile(g:NERDTreeMarksFile)
|
||||||
for i in markStrings
|
for i in markStrings
|
||||||
|
@ -1447,6 +1448,7 @@ function! s:ReadMarks()
|
||||||
let marks[key] = s:oPath.New(path)
|
let marks[key] = s:oPath.New(path)
|
||||||
endfor
|
endfor
|
||||||
call s:RenderView()
|
call s:RenderView()
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
" Function: s:TreeExistsForTab() {{{2
|
" Function: s:TreeExistsForTab() {{{2
|
||||||
" Returns 1 if a nerd tree root exists in the current tab
|
" Returns 1 if a nerd tree root exists in the current tab
|
||||||
|
|
Loading…
Reference in New Issue
Block a user