forked from NvChad/ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nvcheatsheet): fix unicode highlighting and spacing of nvcheatsheet
As the nvim_buf_add_highlight and other functions use byte indexing instead of character indexing, I have fixed the whitespace length to not include the extra bytes of unicode and also for highlighting I had to get the correct byte index for both text and space lines of cheatsheet using builtin functions. Additional testing is required to see all cases are handled. I have checked for emojis and glyphs working as of now. fixes NvChad#74
- Loading branch information
1 parent
1b6ac5a
commit bd7a7cd
Showing
1 changed file
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters