mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 20:05:31 +08:00
read marks when vim loads, not when a nerd tree loads
This commit is contained in:
parent
3a437b402a
commit
0fed73d83a
|
@ -145,6 +145,8 @@ command! -n=0 NERDTreeClose :call s:CloseTreeIfOpen()
|
|||
"============================================================
|
||||
"Save the cursor position whenever we close the nerd tree
|
||||
exec "autocmd BufWinLeave *". s:NERDTreeWinName ."* :call <SID>SaveScreenState()"
|
||||
"cache marks when vim loads
|
||||
autocmd VimEnter * call <SID>ReadMarks()
|
||||
|
||||
"SECTION: Classes {{{1
|
||||
"============================================================
|
||||
|
@ -1445,7 +1447,6 @@ function! s:InitNerdTree(dir)
|
|||
call t:NERDTreeRoot.Open()
|
||||
|
||||
call s:CreateTreeWin()
|
||||
call s:ReadMarks()
|
||||
call s:RenderView()
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user