charmbracelet / bubbles

TUI components for Bubble Tea 🫧
MIT License
5.24k stars 247 forks source link

fix(textinput) cursor not showing underlying char when scrolled to right #512

Open mfulz opened 3 months ago

mfulz commented 3 months ago

When scrolling to the right with limited Width the Cursor will be set to " " (space) even if there are still characters underneath.

This commit fixes this issue.

mfulz commented 3 months ago

Added logic to calculate width including cursor (if at the end) #484