diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-13 15:12:52 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-01-13 15:12:52 -0500 |
commit | 60284850f22624a03996e882fcfd6aeb2af88b93 (patch) | |
tree | ccaef66a4e3628fc26df758e9380a2b4ef15db47 /lib | |
parent | 3157897c1a20e5638feaf56e753b7886bc4ba267 (diff) |
Render selected list item differently
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/list.go | 1 |
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() } |