Skip to content

Commit

Permalink
just pick any window for inverse search if there are several
Browse files Browse the repository at this point in the history
  • Loading branch information
ces42 committed Aug 20, 2024
1 parent b0af22b commit a886799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vimtex/view.vim
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function! vimtex#view#inverse_search(line, filename) abort " {{{1
" * If tab/window exists, switch to it/them
let l:bufnr = bufnr(l:file)
try
let [l:winid] = win_findbuf(l:bufnr)
let [l:winid; _] = win_findbuf(l:bufnr)
let [l:tabnr, l:winnr] = win_id2tabwin(l:winid)
execute l:tabnr . 'tabnext'
execute l:winnr . 'wincmd w'
Expand Down

0 comments on commit a886799

Please sign in to comment.