refactor: make select index optional

This commit is contained in:
iff 2025-01-07 01:56:58 +01:00
parent 195aa34f95
commit d7b57f204c
3 changed files with 3 additions and 2 deletions

View file

@ -210,7 +210,7 @@ pub fn select(
unreachable!("Select suggestion does not support range");
}
} else {
unreachable!("Select suggestion must have a command index");
0
};
let selection_list = if suggest.contains('(') {