FT-2 Keep the gap after a shortened scoped-view path #53
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal!53
Loading…
Reference in a new issue
No description provided.
Delete branch "ft-2-scoped-path-gap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes https://openproject.romaine.life/wp/FT-2: in a scoped view, a path shortened with a leading
…ran straight into the search hint or query.drawTextplaced each rune at its byte offset rather than its rune count, so the 3-byte…pushed everything after it two cells right, onto the gap; it wasn't the terminal measuring the character's width.drawTextnow counts runes, which also fixes any other non-ASCII text it draws. A new test renders a deep scoped path and checks the gap before the query; it fails on main with the exact FP-1 line. Also checked in a real 90-column tmux pane against main.