diff options
Diffstat (limited to 'c_ldirs.go')
-rw-r--r-- | c_ldirs.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -72,9 +72,10 @@ func (ldirs *DirsList) add_back(node *DirsNode) { return } curr := ldirs.last - for curr.next != nil { - curr = curr.next - } + // for curr.next != nil { + // curr = curr.next + // } + new_node.ID = curr.ID + 1 curr.next = new_node ldirs.last = curr.next } |