mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-20 23:41:27 +02:00
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:
parent
f6e005a9ef
commit
bd19d4e394
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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[@]}"
|
||||
|
|
Loading…
Reference in a new issue