From 5524e7d7785bf724079e537217766605ff74b6be Mon Sep 17 00:00:00 2001 From: Carlos Esparza Date: Mon, 19 Aug 2024 17:41:47 -0700 Subject: [PATCH] just pick any window for inverse search if there are several --- autoload/vimtex/view.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/view.vim b/autoload/vimtex/view.vim index 9f7bb9aa7d..90265f14ae 100644 --- a/autoload/vimtex/view.vim +++ b/autoload/vimtex/view.vim @@ -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'