Skip to content

Commit

Permalink
Not select with selectAll if entry is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander authored and andydotxyz committed Jul 26, 2020
1 parent 14bdf79 commit ba8947c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widget/entry.go
Expand Up @@ -780,6 +780,9 @@ func (e *Entry) rowColFromTextPos(pos int) (row int, col int) {

// selectAll selects all text in entry
func (e *Entry) selectAll() {
if e.textProvider().len() == 0 {
return
}
e.setFieldsAndRefresh(func() {
e.selectRow = 0
e.selectColumn = 0
Expand Down

0 comments on commit ba8947c

Please sign in to comment.