Fix #637: Jump back to the right window
This commit is contained in:
parent
7d740682d6
commit
c79e7afb3b
@ -359,6 +359,9 @@ function! vimtex#latexmk#errors_open(force) " {{{1
|
|||||||
let s:qf_main = b:vimtex.tex
|
let s:qf_main = b:vimtex.tex
|
||||||
let s:qf_root = b:vimtex.root
|
let s:qf_root = b:vimtex.root
|
||||||
|
|
||||||
|
" Store winnr of current window in order to jump back later
|
||||||
|
let winnr = winnr()
|
||||||
|
|
||||||
if g:vimtex_quickfix_autojump
|
if g:vimtex_quickfix_autojump
|
||||||
execute 'cfile ' . fnameescape(log)
|
execute 'cfile ' . fnameescape(log)
|
||||||
else
|
else
|
||||||
@ -386,7 +389,7 @@ function! vimtex#latexmk#errors_open(force) " {{{1
|
|||||||
if s:open_quickfix_window
|
if s:open_quickfix_window
|
||||||
botright cwindow
|
botright cwindow
|
||||||
if g:vimtex_quickfix_mode == 2
|
if g:vimtex_quickfix_mode == 2
|
||||||
wincmd p
|
execute winnr . 'wincmd p'
|
||||||
endif
|
endif
|
||||||
redraw
|
redraw
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user