diff options
author | Canop <cano.petrole@gmail.com> | 2022-09-23 16:04:57 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-09-23 16:05:49 +0200 |
commit | 16bf48d6d960fd50d6a7108e2826d18a519de122 (patch) | |
tree | 2318717a15c60be271b40b3d423d35e2e85c798e /src/tree | |
parent | 0238d20ec6e3b6ad859fafda7c15c64a043620e1 (diff) |
fix :line_down_no_cycle cycling in the tree view
Now it doesn't cycle, as advertised
Fix #603
Diffstat (limited to 'src/tree')
-rw-r--r-- | src/tree/tree.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree/tree.rs b/src/tree/tree.rs index 88dddd1..3b1e9ed 100644 --- a/src/tree/tree.rs +++ b/src/tree/tree.rs @@ -212,7 +212,7 @@ impl Tree { self.selection = (self.selection + l - ady) % l; } else { let dy = dy as usize; - if !cycle && self.selection + dy > l { + if !cycle && self.selection + dy >= l { break; } self.selection = (self.selection + dy) % l; |