Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegate Cursor Logic to cursor bubble #181

Merged
merged 3 commits into from
Sep 14, 2022
Merged

Delegate Cursor Logic to cursor bubble #181

merged 3 commits into from
Sep 14, 2022

Conversation

maaslalani
Copy link
Member

This PR extracts the original cursor logic to the cursor bubble.

// Cursor returns the cursor position.
func (m Model) Cursor() int {
// Position returns the cursor position.
func (m Model) Position() int {
Copy link
Member Author

Choose a reason for hiding this comment

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

⚠️ Breaking change! Since I use the name Cursor for the cursor.Model.

@maaslalani maaslalani merged commit a99b55c into master Sep 14, 2022
@maaslalani maaslalani deleted the input-cursor branch September 14, 2022 14:44
ReallyLiri pushed a commit to ReallyLiri/bubbles that referenced this pull request Jun 13, 2024
* refactor: remove cursor logic from textinput
* chore: Add Deprecated Fields to avoid breaking changes
* fix: Ctrl+A and typing moves to end bug
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.

None yet

1 participant