diff options
Diffstat (limited to 'src/i_insert.go')
-rw-r--r-- | src/i_insert.go | 4 |
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 |