summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--melib/src/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/thread.rs b/melib/src/thread.rs
index 7f682f9a..31b4403b 100644
--- a/melib/src/thread.rs
+++ b/melib/src/thread.rs
@@ -695,7 +695,7 @@ impl Threads {
*/
let mut c_idx = 0;
loop {
- if c_idx == thread_nodes[&idx].children.len() {
+ if c_idx >= thread_nodes[&idx].children.len() {
break;
}
let c = thread_nodes[&idx].children[c_idx];