Skip to content

v2: fix(textarea): ensure cursor is always in view#840

Merged
aymanbagabas merged 1 commit intocharmbracelet:v2-expfrom
lrstanley:feature/v2-textarea-pg-and-view
Sep 8, 2025
Merged

v2: fix(textarea): ensure cursor is always in view#840
aymanbagabas merged 1 commit intocharmbracelet:v2-expfrom
lrstanley:feature/v2-textarea-pg-and-view

Conversation

@lrstanley
Copy link
Copy Markdown
Contributor

Describe your changes

Fixes textarea in v2 so calls to MoveToBegin(), MoveToEnd(), CursorUp() & CursorDown() will keep the cursor in view (scrolling viewport to reposition it so the cursor is visible).

Related issues

Checklist before requesting a review

Signed-off-by: Liam Stanley <liam@liam.sh>
Copy link
Copy Markdown
Member

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! LGTM

@aymanbagabas aymanbagabas merged commit 50038eb into charmbracelet:v2-exp Sep 8, 2025
11 checks passed
@lrstanley lrstanley deleted the feature/v2-textarea-pg-and-view branch September 8, 2025 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants