fix: correct TxFieldSelector index upper bound

This commit is contained in:
yyhrnk 2026-02-02 19:48:05 +02:00 committed by GitHub
parent 43e3983e4b
commit e3c4dede41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ fn parse_inout_selection(
(current_input_idx as isize + rel) as usize
};
if idx > nb_items {
if idx >= nb_items {
return Err("selected index out of bounds");
}
if let Some(last) = selected.last() {