Prompt input wraps mid-word instead of at word boundaries
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 19.9k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 30
Description
When typing a long line into the prompt input, the line wraps in the middle of a word instead of breaking at the nearest word boundary (whitespace). This makes typed input hard to read while composing, since words get split across lines unpredictably.
Expected: wrap should break at word boundaries (like standard word-wrap in most text editors/terminals), not mid-word.
Current: the input box wraps purely by character/column width, splitting words across the wrap point.
Not sure if this is a quick fix or requires more work in the input-rendering layer — happy to test a build if useful.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the input-rendering layer responsible for wrapping long prompt lines and reproduce the behavior with words longer than one line. Confirm that wrapping prefers the nearest whitespace without disrupting prompt editing, then verify the result with the relevant input or rendering tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 63/100