diff options
author | Joe <rbo@gmx.us> | 2024-01-15 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-15 20:20:20 +0100 |
commit | fcaee1fad0de4cd76cab8a808b8f62010b5bfabb (patch) | |
tree | 807217030b6d650f4b26f51c6398bf0ba0d4a54e /c_litems.go | |
parent | go (diff) | |
download | hardflip-fcaee1fad0de4cd76cab8a808b8f62010b5bfabb.tar.gz hardflip-fcaee1fad0de4cd76cab8a808b8f62010b5bfabb.tar.bz2 hardflip-fcaee1fad0de4cd76cab8a808b8f62010b5bfabb.tar.xz hardflip-fcaee1fad0de4cd76cab8a808b8f62010b5bfabb.tar.zst hardflip-fcaee1fad0de4cd76cab8a808b8f62010b5bfabb.zip |
working?
Diffstat (limited to 'c_litems.go')
-rw-r--r-- | c_litems.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c_litems.go b/c_litems.go index 031432d..48e9246 100644 --- a/c_litems.go +++ b/c_litems.go @@ -180,13 +180,14 @@ func (item *ItemsNode) get_next_level() *ItemsNode { item_ptr := item for item_ptr != nil { if item_ptr.is_dir() == false { + item_ptr = item_ptr.next continue } if item_ptr.Dirs == ptr { - break + return item_ptr } item_ptr = item_ptr.next } - return item_ptr + return nil } |