aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_insert.go
diff options
context:
space:
mode:
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