Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

ces42
Copy link
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
Owner

lervag commented Aug 20, 2024

Thanks, that's a good catch!

@lervag lervag merged commit 76ef99f into lervag:master Aug 20, 2024
1 check passed
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