fix: text input attempting to subtract with overflow
This commit is contained in:
parent
0607161276
commit
9ce3a51728
1 changed files with 22 additions and 20 deletions
|
|
@ -729,6 +729,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tree.children.len() > 0 {
|
||||||
let index = tree.children.len() - 1;
|
let index = tree.children.len() - 1;
|
||||||
if let (Some(trailing_icon), Some(tree)) =
|
if let (Some(trailing_icon), Some(tree)) =
|
||||||
(self.trailing_icon.as_mut(), tree.children.get_mut(index))
|
(self.trailing_icon.as_mut(), tree.children.get_mut(index))
|
||||||
|
|
@ -755,6 +756,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
update(
|
update(
|
||||||
event,
|
event,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue