wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.17k stars 775 forks source link

Mangled text in Helix when unicode is involved #4255

Open chtenb opened 1 year ago

chtenb commented 1 year ago

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20230828-220414-99c96139

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

image

I've attached an asciicast where you see me open a file in Helix, copy text from that file to the system clipboard and paste it back into the file. This is a reliable way to trigger the issue if the copied text contains unicode. In the second asciicast I move to that same section in the file and open+close an overlay. This also triggers the issue.

This issue only occurs in Helix+Wezterm. Helix+WindowsTerminal and Vim+Wezterm both do not exhibit this behavior.

hx-wezterm-clipboard-paste.cast.txt helix-open-overlay.cast.txt

To Reproduce

Install Helix+wezterm on windows and open a file with unicode. Play around with it like in the asciicasts.

Configuration

no config

Expected Behavior

No response

Logs

No warnings/errors in the logs

Anything else?

No response

wez commented 1 year ago

Maybe related to: