ghost chars when select CJK chars in vim visual mode #23092

Open
opened 2026-01-31 08:32:05 +00:00 by claunia · 0 comments
Owner

Originally created by @DustarMao on GitHub (Mar 30, 2025).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.22.10731.0

Windows build number

10.0.26100.0

Other Software

vim 9.1
pwsh 7.5.0

Steps to reproduce

create a file include CJK chars like below

中文内容
にほんご

use vim open it, and select one line in visual mode

Expected Behavior

normal select line with fact chars

below is a normal result in conhost
Image

Actual Behavior

Image

display some ghost chars after end of line

Originally created by @DustarMao on GitHub (Mar 30, 2025). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.22.10731.0 ### Windows build number 10.0.26100.0 ### Other Software vim 9.1 pwsh 7.5.0 ### Steps to reproduce create a file include CJK chars like below ``` 中文内容 にほんご ``` use vim open it, and select one line in visual mode ### Expected Behavior normal select line with fact chars below is a normal result in conhost ![Image](https://github.com/user-attachments/assets/1ff0968f-8137-4b3c-b717-6ccf0dcda578) ### Actual Behavior ![Image](https://github.com/user-attachments/assets/ff29ef83-cb7b-4888-8184-7dc8aa2b89e0) display some ghost chars after end of line
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23092