Skip to content

CJK/Japanese results wrap and corrupt the layout #4

Description

@Tretorhate

Environment

  • ytcli: v0.1.4
  • OS: CachyOS Linux x86_64
  • Terminal: Ghostty (TERM=xterm-ghostty)

Steps to reproduce

  1. Launch ytcli
  2. Search for ado songs
  3. View results containing Japanese titles

Actual behavior

Result rows wrap onto additional terminal lines. Type labels such as
[song], [video], and [list] become split and appear on the next line,
corrupting the layout.

Expected behavior

Each result should remain on one terminal row, with its type label aligned
at the right edge.

It appears visibleCols and truncateCols count every non-ASCII code point
as one terminal column, while CJK characters normally occupy two columns.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions