aboutsummaryrefslogtreecommitdiffstats
path: root/c_litems.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-10 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-10 20:20:20 +0100
commit29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6 (patch)
treeb983c6ad396de43f25980bdfe14d0517b8e150f8 /c_litems.go
parentrevert if needed (diff)
downloadhardflip-29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6.tar.gz
hardflip-29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6.tar.bz2
hardflip-29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6.tar.xz
hardflip-29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6.tar.zst
hardflip-29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6.zip
trying that map
Diffstat (limited to 'c_litems.go')
-rw-r--r--c_litems.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/c_litems.go b/c_litems.go
index 5e8a1a9..03c2ae1 100644
--- a/c_litems.go
+++ b/c_litems.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/c_litems.go
- * Tue Jan 09 10:51:22 2024
+ * Wed Jan 10 11:30:12 2024
* Joe
*
* the dir and hosts linked list
@@ -164,19 +164,19 @@ func (litems *ItemsList) inc(jump int) {
new_item = new_item.prev
}
}
- for jump > 0 &&
- new_item.folded_parents() == true &&
- new_item.next != nil {
- new_item = new_item.next
- }
- for jump < 0 &&
- new_item.folded_parents() == true &&
- new_item.prev != nil {
- new_item = new_item.prev
- }
- if new_item == litems.last && new_item.folded_parents() == true {
- return
- }
+ // for jump > 0 &&
+ // new_item.folded_parents() == true &&
+ // new_item.next != nil {
+ // new_item = new_item.next
+ // }
+ // for jump < 0 &&
+ // new_item.folded_parents() == true &&
+ // new_item.prev != nil {
+ // new_item = new_item.prev
+ // }
+ // if new_item == litems.last && new_item.folded_parents() == true {
+ // return
+ // }
litems.curr = new_item
}