mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-13 23:12:44 +08:00
Small cleanup of last patch
This commit is contained in:
parent
ad8783961d
commit
1f0c0a3a8e
|
@ -2411,13 +2411,13 @@ function! s:RenderContent(...) abort
|
|||
let in_tagbar = 1
|
||||
else
|
||||
let in_tagbar = 0
|
||||
let currwinnr = winnr()
|
||||
let prevwinnr = winnr()
|
||||
|
||||
" Get the previous window number, so that we can reproduce
|
||||
" the window entering history later. Do not run autocmd on
|
||||
" this command, make sure nothing is interfering.
|
||||
call s:winexec('noautocmd wincmd p')
|
||||
let prevwinnr = winnr()
|
||||
call s:winexec('wincmd p')
|
||||
let pprevwinnr = winnr()
|
||||
|
||||
call s:winexec(tagbarwinnr . 'wincmd w')
|
||||
endif
|
||||
|
@ -2482,8 +2482,8 @@ function! s:RenderContent(...) abort
|
|||
let &eventignore = eventignore_save
|
||||
|
||||
if !in_tagbar
|
||||
call s:winexec(pprevwinnr . 'wincmd w')
|
||||
call s:winexec(prevwinnr . 'wincmd w')
|
||||
call s:winexec(currwinnr . 'wincmd w')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user