mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -05:00
bugfix for doing :qa when a nerd tree is open in another tab
This commit is contained in:
@@ -2603,11 +2603,14 @@ endfunction
|
|||||||
"scroll position
|
"scroll position
|
||||||
function! s:saveScreenState()
|
function! s:saveScreenState()
|
||||||
let win = winnr()
|
let win = winnr()
|
||||||
call s:putCursorInTreeWin()
|
try
|
||||||
let t:NERDTreeOldPos = getpos(".")
|
call s:putCursorInTreeWin()
|
||||||
let t:NERDTreeOldTopLine = line("w0")
|
let t:NERDTreeOldPos = getpos(".")
|
||||||
let t:NERDTreeOldWindowSize = s:shouldSplitVertically() ? winwidth("") : winheight("")
|
let t:NERDTreeOldTopLine = line("w0")
|
||||||
exec win . "wincmd w"
|
let t:NERDTreeOldWindowSize = s:shouldSplitVertically() ? winwidth("") : winheight("")
|
||||||
|
exec win . "wincmd w"
|
||||||
|
catch /NERDTree.view.InvalidOperation/
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:setupSyntaxHighlighting() {{{2
|
"FUNCTION: s:setupSyntaxHighlighting() {{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user