aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_insert.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-09-09 18:33:04 +0200
committerJoe <rbo@gmx.us>2024-09-09 18:33:04 +0200
commit0527dc94765eace6fb2096fb9105858d51b83deb (patch)
tree1b844e1ffa571f12ec3261f98936e7b0e9dec749 /src/i_insert.go
parentfuck (diff)
downloadhardflip-0527dc94765eace6fb2096fb9105858d51b83deb.tar.gz
hardflip-0527dc94765eace6fb2096fb9105858d51b83deb.tar.bz2
hardflip-0527dc94765eace6fb2096fb9105858d51b83deb.tar.xz
hardflip-0527dc94765eace6fb2096fb9105858d51b83deb.tar.zst
hardflip-0527dc94765eace6fb2096fb9105858d51b83deb.zip
gg
Diffstat (limited to 'src/i_insert.go')
-rw-r--r--src/i_insert.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i_insert.go b/src/i_insert.go
index 1a2575c..abe5c30 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -183,12 +183,12 @@ func i_insert_host(data *HardData, insert *HostNode) error {
0,
nil,
insert,
- data.litems.curr,
+ data.litems.curr.prev,
next,
}
curr := data.litems.curr
if curr != nil {
- data.litems.add_after(item)
+ data.litems.overwrite(item)
// curr.next = item
// if curr.next.next != nil {
// data.litems.curr.next.next.prev = item