Width / normalization Rust open

Zed block cursor is misaligned over ambiguous-width Unicode characters

editor: Center the block cursor glyph for ambiguous-width characters

zed · zed-industries/zed

Symptom

In Zed editor, the block cursor over Unicode ambiguous-width characters (East Asian Width 'A' category, e.g., some symbols, box-drawing) is misaligned — the cursor glyph is not centered in the cell.

Minimal repro
Open Zed with a CJK font; position cursor on an ambiguous-width character; block cursor appears shifted or misaligned.
Fix

Center the block cursor glyph using the rendered cell width rather than the glyph's intrinsic width for ambiguous-width characters.

Fix PR → #zed-block-cursor-ambiguous-width

Also in: Rust

← all 93 entries