Fix window focusing
This commit is contained in:
parent
53041fbc45
commit
9ca31e5053
|
@ -2615,12 +2615,15 @@ function! s:Tlist_Window_Toggle()
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Store the current buffer
|
||||||
|
let current_buf = winbufnr(0)
|
||||||
call s:Tlist_Window_Open()
|
call s:Tlist_Window_Open()
|
||||||
|
|
||||||
" Go back to the original window, if Tlist_GainFocus_On_ToggleOpen is not
|
" Go back to the original window, if Tlist_GainFocus_On_ToggleOpen is not
|
||||||
" set
|
" set
|
||||||
if !g:Tlist_GainFocus_On_ToggleOpen
|
if !g:Tlist_GainFocus_On_ToggleOpen
|
||||||
call s:Tlist_Exe_Cmd_No_Acmds('wincmd p')
|
let prev_win = bufwinnr(current_buf)
|
||||||
|
exe prev_win . 'wincmd w'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Update the taglist menu
|
" Update the taglist menu
|
||||||
|
|
Loading…
Reference in New Issue