Skip to content

Commit

Permalink
Minor optimization to widget.Entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 6, 2024
1 parent 484a4bb commit ed31585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions widget/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -1864,8 +1864,9 @@ func (r *entryContentRenderer) Refresh() {
r.moveCursor()

for _, selection := range selections {
selection.(*canvas.Rectangle).Hidden = !r.content.entry.focused
selection.(*canvas.Rectangle).FillColor = theme.SelectionColor()
rect := selection.(*canvas.Rectangle)
rect.Hidden = !r.content.entry.focused
rect.FillColor = theme.SelectionColor()
}

canvas.Refresh(r.content)
Expand Down

0 comments on commit ed31585

Please sign in to comment.