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

fix whitespace highlighting #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zhengpd
Copy link
Contributor

@zhengpd zhengpd commented Dec 7, 2024

Before this fix, when cursor jump to another window, some char before cursor in previous window would disappear, which probably is caused by Conceal matches.

This fix removes cursor-related highlight matches when current window is not focused.

This also fix a problem that matches are repeatedly added to current window after buffer is reloaded. This can be checked by vim cmd echo getmatches().

Before this fix, when cursor jump to another window, some char before
cursor in previous window would disappear, which probably is caused by
Conceal matches.

This fix removes cursor-related highlight matches when current window is
not focused.
@zhengpd zhengpd force-pushed the zhengpd/fix-highlight branch from ff65498 to c701bc0 Compare December 7, 2024 03:28
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.

1 participant