Skip to content

just pick any window for inverse search if there are several#2990

Merged
lervag merged 1 commit intolervag:masterfrom
ces42:minifix
Aug 20, 2024
Merged

just pick any window for inverse search if there are several#2990
lervag merged 1 commit intolervag:masterfrom
ces42:minifix

Conversation

@ces42
Copy link
Copy Markdown
Contributor

@ces42 ces42 commented Aug 20, 2024

For some reason I don't understand my BufReadCmd makes my files lose syntax highlighting when calling edit %. This is triggered by inverse search when I have two windows of the same file open. This avoids it.

I don't 100% understand the code in vimtex#view#inverse_search (in particular I don't know what could cause an error in the try block), so there might be a downside to doing this.

(sorry, I used the wrong branch in the previous PR)

@lervag
Copy link
Copy Markdown
Owner

lervag commented Aug 20, 2024

Thanks, that's a good catch!

@lervag lervag merged commit 76ef99f into lervag:master Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants