[BUG]Display misplacement when text content contains zero-width characters
- Dominant language
- Rust
- Stars
- 4.8k
- Forks
- 270
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
I created a simple example where the text contains \u{0E34} characters and it behaves differently in the two terminals.
The output of the unicode-width crate shows that \u{0E34} is a zero-width character, and Windows Terminal treats it as a separate character, while Fluent Terminal tries to combine it with the latter character.
In my environment, each line has 168 characters.
In the output of Fluent Terminal, there is a dislocation at the end of the first line of the window, and the "A" character at the end of the second line wraps before filling the space.
**To Reproduce**
Please run this code on Windows Terminal or Fluent Terminal:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1ecccfc37c0d58913221999ad700c8b8
**Expected behavior**
I expect no misalignment in both terminals and characters fill the remaining space.
**Screenshots**
Windows Terminal:

Fluent Terminal:

**Environment**
* Operating system: Windows 11
* Backend used: crossterm
* Cursive version: crates.io (0.20.0)
Contributor guide
Assessment
This issue has not been assessed yet.