mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -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
|
||||
function! s:saveScreenState()
|
||||
let win = winnr()
|
||||
call s:putCursorInTreeWin()
|
||||
let t:NERDTreeOldPos = getpos(".")
|
||||
let t:NERDTreeOldTopLine = line("w0")
|
||||
let t:NERDTreeOldWindowSize = s:shouldSplitVertically() ? winwidth("") : winheight("")
|
||||
exec win . "wincmd w"
|
||||
try
|
||||
call s:putCursorInTreeWin()
|
||||
let t:NERDTreeOldPos = getpos(".")
|
||||
let t:NERDTreeOldTopLine = line("w0")
|
||||
let t:NERDTreeOldWindowSize = s:shouldSplitVertically() ? winwidth("") : winheight("")
|
||||
exec win . "wincmd w"
|
||||
catch /NERDTree.view.InvalidOperation/
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
"FUNCTION: s:setupSyntaxHighlighting() {{{2
|
||||
|
||||
Reference in New Issue
Block a user