Skip to content

TUI editor word movement does not stop at fullwidth Chinese punctuation #4972

@ttttmr

Description

@ttttmr

What happened?

In the pi interactive editor, Option+Left/Right word movement does not stop at fullwidth Chinese punctuation.

Example input:
你好,世界

With the cursor at the end, Option+Left skips across the Chinese comma instead of stopping at the punctuation boundary. The same word movement in the original terminal can stop around the punctuation.

Steps to reproduce

  1. Start pi interactive mode on macOS.
  2. Type: 你好,世界
  3. Put the cursor at the end.
  4. Press Option+Left / Option+Right.

The cursor cannot stop at the Chinese comma .

Expected behavior

Word movement should treat fullwidth Unicode punctuation like as punctuation, while preserving existing ASCII punctuation behavior.

Version

0.75.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions