aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_insert.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
commit0ddfbf62fde8b8e0bde9a548b203d67b812ab61e (patch)
tree9843ed6d3420f1295e2b30355cfa743d4fa62202 /src/i_insert.go
parentgg (diff)
downloadhardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.gz
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.bz2
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.xz
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.zst
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.zip
fix
Diffstat (limited to 'src/i_insert.go')
-rw-r--r--src/i_insert.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/i_insert.go b/src/i_insert.go
index e191bc4..09e1537 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -188,11 +188,12 @@ func i_insert_host(data *HardData, insert *HostNode) error {
}
curr := data.litems.curr
if curr != nil {
- curr.next = item
- if curr.next.next != nil {
- data.litems.curr.next.next.prev = item
- }
- data.litems.curr = data.litems.curr.next
+ data.litems.add_after(item)
+ // curr.next = item
+ // if curr.next.next != nil {
+ // data.litems.curr.next.next.prev = item
+ // }
+ // data.litems.curr = data.litems.curr.next
} else {
data.litems.add_back(item)
data.litems.curr = data.litems.head