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 no whitespace displaying after an "à " #22403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tachyglossues
Copy link

fixed a bug where with the "show_whitespaces": "boundary" option, when there was an "à" followed by a space, a white space was displayed, and when "à" was at the end of the line, a white space was added

However, this fix needs to be further investigated because when printing (*line_byte as char) in the terminal, most characters are correctly displayed as they are in Zed. However, certain special characters are considered as multiple characters. Here are some examples with the character written in Zed on the left and the output of (*line_byte as char) on the right:
¨ -> 'Â' '¨'
ù -> 'Ã' '¹'
é -> 'Ã' '©'
√ -> 'â' '\u{88}' '\u{9a}'
♣ -> 'â' '\u{99}' '£'
à -> 'Ã' '\u{a0}'

Unfortunately, I do not have the sufficient knowledge to delve deeper into this issue.

fixed a bug where with the "show_whitespaces": "boundary" option, when there was an "à" followed by a space, a white space was displayed, and when "à" was at the end of the line, a white space was added
Copy link

cla-bot bot commented Dec 24, 2024

We require contributors to sign our Contributor License Agreement, and we don't have @tachyglossues on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@tachyglossues
Copy link
Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 24, 2024
Copy link

cla-bot bot commented Dec 24, 2024

The cla-bot has been summoned, and re-checked this pull request!

@maxdeviant maxdeviant changed the title after an "à " no display of whitespace Fix no whitespace displaying after an "à " Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant