aboutsummaryrefslogtreecommitdiff
path: root/lib/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-13 15:12:52 -0500
committerDrew DeVault <sir@cmpwn.com>2019-01-13 15:12:52 -0500
commit60284850f22624a03996e882fcfd6aeb2af88b93 (patch)
treeccaef66a4e3628fc26df758e9380a2b4ef15db47 /lib/ui
parent3157897c1a20e5638feaf56e753b7886bc4ba267 (diff)
Render selected list item differently
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/list.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ui/list.go b/lib/ui/list.go
index 58f304f..9caae20 100644
--- a/lib/ui/list.go
+++ b/lib/ui/list.go
@@ -88,6 +88,7 @@ func (list *List) Select(index int) {
panic(fmt.Errorf("Attempted to select unknown child"))
}
list.selected = index
+ list.Items[list.selected].invalid = true
list.Invalidate()
}