diff options
Diffstat (limited to '')
-rw-r--r-- | c_litems.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/c_litems.go b/c_litems.go index e1fef34..5e8a1a9 100644 --- a/c_litems.go +++ b/c_litems.go @@ -88,14 +88,11 @@ func (litems *ItemsList) del(item *ItemsNode) { if litems.head == item { litems.head = litems.head.next if litems.head == nil { - litems.last = nil - litems.curr = nil - litems.draw_start = nil + litems.last, litems.curr, litems.draw_start = nil, nil, nil return } litems.head.prev = nil - litems.curr = litems.head - litems.draw_start = litems.head + litems.curr, litems.draw_start = litems.head, litems.head for ptr := litems.head; ptr != nil; ptr = ptr.next { ptr.ID -= 1 } |