Location: crates/hx-tui/src/editor.rs (row-wrapping fn, wrap/rows computation near original line 160)
What is hacky: wrapping and cursor placement count chars, not terminal cell width, so CJK and emoji can overflow a row by a cell.
Proper fix: use unicode-width for row breaks and cursor column.
Original comment: "ponytail: counts chars, not cell width; CJK/emoji can overflow a row by a cell. Use unicode-width if it matters."
Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
Location: crates/hx-tui/src/editor.rs (row-wrapping fn, `wrap`/rows computation near original line 160)
What is hacky: wrapping and cursor placement count chars, not terminal cell width, so CJK and emoji can overflow a row by a cell.
Proper fix: use unicode-width for row breaks and cursor column.
Original comment: "ponytail: counts chars, not cell width; CJK/emoji can overflow a row by a cell. Use unicode-width if it matters."
Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes
added the tui label 2026-11-21 12:37:06 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Location: crates/hx-tui/src/editor.rs (row-wrapping fn,
wrap/rows computation near original line 160)What is hacky: wrapping and cursor placement count chars, not terminal cell width, so CJK and emoji can overflow a row by a cell.
Proper fix: use unicode-width for row breaks and cursor column.
Original comment: "ponytail: counts chars, not cell width; CJK/emoji can overflow a row by a cell. Use unicode-width if it matters."
Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).