mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix #101. Thanks to @stegmanh
This commit is contained in:
parent
a1bc7cfd6a
commit
4c620a9c3c
@ -33,6 +33,10 @@ func (list *List) CheckedItems() []*Item {
|
||||
|
||||
func (list *List) Delete() {
|
||||
list.Items = append(list.Items[:list.selected], list.Items[list.selected+1:]...)
|
||||
|
||||
if list.selected >= len(list.Items) {
|
||||
list.selected--
|
||||
}
|
||||
}
|
||||
|
||||
func (list *List) Demote() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user