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

Line length wrong for background color (unicode) #3616

Open
peterjc opened this issue Jan 18, 2025 · 5 comments
Open

Line length wrong for background color (unicode) #3616

peterjc opened this issue Jan 18, 2025 · 5 comments

Comments

@peterjc
Copy link

peterjc commented Jan 18, 2025

Follow on from #872 where the Thai text in http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
at lines 123-130 seems to render fine - but not necessarily the background coloring.

This seems to be working now in micro 2.0.14 on macOS under WezTerm.

However there is some oddity on the Apple Terminal (testing on macOS 12.7.6) with the background colour on the right hand end of those lines. It is as though the length calculation for drawing the background colour has worked out shorter than the screen width:

Image

This also affects line 57, starting "STARGΛ̊TE SG-1" (TV show Stargate SG-1 with symbolic replacement for A). Here deleting the a-vector and b-vector entries "fixes" it, suggesting the arrow-above modification breaks.

Image

Trying to select the a-vector and b-vector with the mouse is also glitching. For example, a triple click selects the line but appears to only highlight up to half the b-vector. Again, specific to the Apple Terminal, WezTerm was fine.

@peterjc
Copy link
Author

peterjc commented Jan 18, 2025

There is still possibly a Thai glitch, line 130 (the last line of Thai), column approx 40 (halfway along second column). However I'm not sure how the combined character ought to look - but my terminal rendering vs Firefox differ.

@Andriamanitra
Copy link
Contributor

This might be the same issue as #2925

@peterjc
Copy link
Author

peterjc commented Jan 18, 2025

Could be - helix definitely breaks on this Thai character: helix-editor/helix#12598

@peterjc
Copy link
Author

peterjc commented Jan 19, 2025

The background colour highlighting is also broken on the Apple Terminal with macOS Sequoia 15.2. However, it seems to be working micro 2.0.14 on macOS under Ghostty v1.0.1 (and WezTerm on macOS Sequoia).

i.e. The background highlighting could well be an Apple Terminal only glitch, and not a micro bug.

@JoeKar
Copy link
Collaborator

JoeKar commented Jan 19, 2025

This might be the same issue as #2925

Yep, looks like that and I agree that this is more related to micro and his own wide rune processing than different terminals. I assume some terminals hide this symptom.

Do you agree to close it as a duplicate of #2925?

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

3 participants