mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #171] [CLOSED] Allow left and right movement within inputfield #866
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#866
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/171
Author: @asacainbbc
Created: 10/8/2018
Status: ❌ Closed
Base:
master← Head:master📝 Commits (10+)
36f2a6eAllow moving cursor around text16daac3Correct bounding index501ef25Skip further layout tests if input is empty4f2f703Default behaviour if string is empty94cc7e9Correct boundsdc2a1faBounds correctinga33c665Check length before trying to indexe225fcaFix slice bounds out of range27f01b2More bounds checking673bad8Stop trying to find cursor position via field width📊 Changes
2 files changed (+77 additions, -36 deletions)
View changed files
📝
inputfield.go(+65 -36)📝
util.go(+12 -0)📄 Description
I've patched inputfield.go to allow left and right movement and editing the input's text from the cursor's position. This is my first patch for this codebase so I'm sure it's not up to scratch but I'm 100% happy to make changes and resubmit.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.