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 for issue #1121 #1334

Closed
wants to merge 1 commit into from
Closed

Fix for issue #1121 #1334

wants to merge 1 commit into from

Conversation

j-xella
Copy link

@j-xella j-xella commented Mar 15, 2024

This should fix the problem described in #1121. Maybe with the latest greatest nvim this problem is also bypassed (see 086891d). But the fix is still relevant for older nvim versions.

The problem seems to be that lua line:sub method is not Unicode-aware and does not work properly with strings that contain Unicode characters. That is definitely the case when concealer required more than one substitution (one for heading, one for todo marks). First substitution (heading) would work fine, but the second one (todo mark) would become off.

@j-xella
Copy link
Author

j-xella commented Mar 15, 2024

Please ignore this PR in favour of #1335

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