aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/c_litems.go3
1 files changed, 3 insertions, 0 deletions
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
}