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 | 0ddfbf62fde8b8e0bde9a548b203d67b812ab61e (patch) | |
tree | 9843ed6d3420f1295e2b30355cfa743d4fa62202 /src/i_insert.go | |
parent | gg (diff) | |
download | hardflip-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.go | 11 |
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 |