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

hightlight pos render error #158

Open
Marskey opened this issue Mar 23, 2024 · 3 comments
Open

hightlight pos render error #158

Marskey opened this issue Mar 23, 2024 · 3 comments

Comments

@Marskey
Copy link

Marskey commented Mar 23, 2024

image

font is https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/Meslo.zip

@purajit
Copy link

purajit commented Sep 13, 2024

Happens here too - in my usual font (Mononoki Nerd) or even with system default monospace font.

I'm guessing it's to do with regex capture groups. I have a regex capture for 20\d{6}-[a-zA-Z0-9-_.]+ (a date followed by hypenated words). With this, I get the hint after the 20 of the string. Changing it to \d{8}-[a-zA-Z0-9-_.]+ works (hint starts at the beginning)

@purajit
Copy link

purajit commented Sep 13, 2024

Ah, the problem is ligatures #161
Your prompt is a ligature - I assume you use nf-fa-angle_right (\uf105) which I do too.
That's why the prompt line has an incorrect position but the output line doesn't.

@purajit
Copy link

purajit commented Sep 14, 2024

I have something that works in #162

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

No branches or pull requests

2 participants