Skip to content

Commit

Permalink
Ensure the widget updates to show cursor position
Browse files Browse the repository at this point in the history
Fixes #4181
  • Loading branch information
andydotxyz committed Nov 17, 2023
1 parent 55ca658 commit 5f83d9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widget/entry.go
Original file line number Diff line number Diff line change
@@ -911,6 +911,7 @@ func (e *Entry) pasteFromClipboard(clipboard fyne.Clipboard) {

e.updateTextAndRefresh(provider.String())
e.CursorRow, e.CursorColumn = e.rowColFromTextPos(pos + len(runes))
e.Refresh() // placing the cursor (and refreshing) happens last
}

// placeholderProvider returns the placeholder text handler for this entry

0 comments on commit 5f83d9e

Please sign in to comment.