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

Don't count empty spans in braces cache #42

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

lordfanger
Copy link
Contributor

I did some debuging and found bug in caching "unchanged" braces. When one end (open/close) of pair was not known, it had default value at position 0, lentgh 0 which was always above first changed line and so got into cache. But if correct brace position changed there were 2 colored characters for 1 brace. After another change 3 etc. After some typing (especially in comments when syntax elements were not updated) the colors got really messy.

It could fixes these issues: #28 #29 #39 #40

@madskristensen madskristensen merged commit cadb702 into madskristensen:master Nov 23, 2022
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