Skip to content

Fix rendering of zero-width characters#1880

Merged
chrisduerr merged 2 commits intoalacritty:masterfrom
chrisduerr:zerowidth-slice
Dec 9, 2018
Merged

Fix rendering of zero-width characters#1880
chrisduerr merged 2 commits intoalacritty:masterfrom
chrisduerr:zerowidth-slice

Conversation

@chrisduerr
Copy link
Copy Markdown
Member

@chrisduerr chrisduerr commented Dec 8, 2018

Instead of rendering zero-width characters as full characters, they are
now properly rendered without advancing the cursor.

Because of performance limitations, this implementation only supports up
to 5 zero-width characters per cell. However, as a result of this
limitation there should not be any performance impact.

tmp

This fixes #1317, fixes #696 and closes #1318.

Instead of rendering zero-width characters as full characters, they are
now properly rendered without advancing the cursor.

Because of performance limitations, this implementation only supports up
to 5 zero-width characters per cell. However, as a result of this
limitation there should not be any performance impact.

This fixes alacritty#1317, fixes alacritty#696 and closes alacritty#1318.
The maximum amount of zerowidth characters per cell have been extracted
into the `MAX_ZEROWIDTH_CHARS` constant in the `src/term/cell.rs` file.

This should not only make it easier to change the maximum amount of
zerowidth characters in the future, but also provide an easy way to test
Alacritty's behavior with different amounts of zerowidth characters.
@chrisduerr chrisduerr merged commit 1cebcd6 into alacritty:master Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Render zero-width characters without progressing the cursor Ghost characters when scrolling text in unicode.

1 participant