52895: Partial revert of 44274 which broke _baudrates

_description does not accept -o numeric, which resulted in
_description:zformat:89: invalid argument: expl

The array is already sorted correctly in the completer so I don't see
any need to have the completion sort it again anyway.
This commit is contained in:
Mikael Magnusson 2024-04-21 00:53:50 +02:00
parent f6e005a9ef
commit bd19d4e394
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2024-05-20 Mikael Magnusson <mikachu@gmail.com>
* 52895: Completion/Unix/Type/_baudrates: Partial revert of
44274 which broke _baudrates
2024-05-10 Peter Stephenson <p.stephenson@samsung.com>
* 52924: Src/Modules/zftp.c: NULL zfsessions after free.

View file

@ -72,6 +72,7 @@ if (( ${+opts[-f]} )); then
done
fi
# -1 removes dupes (which there shouldn't be)
_description -1 -o numeric baud-rates expl 'baud rate'
# -1V removes dupes (which there shouldn't be) and otherwise leaves the
# order in the $rates array intact.
_description -1V baud-rates expl 'baud rate'
compadd "${argv[@]}" "$expl[@]" -- "${rates[@]}"