mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Fix off-by-one error when selecting next index
This commit is contained in:
parent
b3622693a5
commit
ccf6d9a1d1
@ -28,7 +28,7 @@ impl OperationView {
|
||||
}
|
||||
|
||||
pub fn select_next(&mut self) {
|
||||
if self.selected < self.operations().len() {
|
||||
if self.selected + 1 < self.operations().len() {
|
||||
self.selected += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user