Commit 4bb7f32
committed
add-interactive: reject malformed numerical input
The list-and-choose interface accepts malformed input such as "2m3" and
interprets it as "2-", silently selecting a range to the end. This is
misleading and makes it easy to select unintended items.
Reject such input by treating it as invalid.
Signed-off-by: Seonghyeon Cho <seonghyeoncho96@gmail.com>1 parent 6ad8021 commit 4bb7f32
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
| |||
0 commit comments