From 476cca4fe1117028fe29007b3a1578fe1365da3d Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 13 May 2024 20:20:20 +0200 Subject: go --- src/c_litems.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c_litems.go b/src/c_litems.go index 153b02c..9b07ab3 100644 --- a/src/c_litems.go +++ b/src/c_litems.go @@ -92,6 +92,9 @@ func (litems *ItemsList) add_after(node *ItemsNode) { node.prev = curr node.next = curr.next curr.next = node + if node.next != nil { + node.next.prev = node + } if litems.last == curr { litems.last = node } -- cgit v1.2.3