From 29d3811e9b44bdf532a8b87ee5fe61fd3a0e71a6 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 10 Jan 2024 20:20:20 +0100 Subject: trying that map --- c_litems.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'c_litems.go') 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 } -- cgit v1.2.3