diff options
author | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
commit | 476cca4fe1117028fe29007b3a1578fe1365da3d (patch) | |
tree | 33482db421f55984603096706892f3c017e362e1 | |
parent | here (diff) | |
download | hardflip-476cca4fe1117028fe29007b3a1578fe1365da3d.tar.gz hardflip-476cca4fe1117028fe29007b3a1578fe1365da3d.tar.bz2 hardflip-476cca4fe1117028fe29007b3a1578fe1365da3d.tar.xz hardflip-476cca4fe1117028fe29007b3a1578fe1365da3d.tar.zst hardflip-476cca4fe1117028fe29007b3a1578fe1365da3d.zip |
go
-rw-r--r-- | src/c_litems.go | 3 |
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 } |