# terminal: Fix rendering of zero-width combining characters \(\#39526\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9c7369f54d83e6746fe8bb00fca0fa04c258e055)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9c7369f54d83e6746fe8bb00fca0fa04c258e055

Requested commit: 9c7369f54d83e6746fe8bb00fca0fa04c258e055

Commit: 9c7369f54d83e6746fe8bb00fca0fa04c258e055

Tree: 00b43174d1b0b0f3bd4ab59b3b2a5dddbe05572f

Author: Ratazzi

Committer: GitHub

## Message

```
terminal: Fix rendering of zero-width combining characters (#39526)

Add support for rendering Unicode combining characters (diacritics) in
the terminal's batched text runs.

- Add append_zero_width_chars() to handle combining marks
- Integrate zero-width chars into all batching code paths
- Update cell extras tracking logic
- Add test for combining character rendering

Fixes display of é, ñ, ô and other diacritics.

Closes #39525

Release Notes:

- Fixed: NFD/NFKD normalized text (e.g., é as e + ◌́) not rendering in
integrated terminal

Before:

<img width="874" height="688" alt="SCR-20251004-udnj"
src="https://github.com/user-attachments/assets/8d9f9c9f-dac4-4382-92c2-8b6c1d817abd"
/>

After:

<img width="873" height="686" alt="SCR-20251004-ulsw"
src="https://github.com/user-attachments/assets/fbd5cdc7-fdd6-44dc-8b05-cc425644f1a0"
/>
```

## Parents

- [5160510ed0150979f22ccda68012e0de0762bbeb](https://git.cafe/gitcafe/zed/commit/5160510ed0150979f22ccda68012e0de0762bbeb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9c7369f54d83e6746fe8bb00fca0fa04c258e055?format=markdown)
