mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-26 01:41:14 +01:00
Use _math for completing the let builtin
This commit is contained in:
parent
f9938ba951
commit
d624558051
2 changed files with 4 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
|||
2000-05-09 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 11284: Completion/Base/_math: use _math to complete the let builtin
|
||||
|
||||
* 11282: Completion/Builtins/_vars_eq: complete using _arguments
|
||||
for typeset and its variants
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#defcomp -math-
|
||||
#compdef -math- let
|
||||
|
||||
if [[ "$PREFIX" = *[^a-zA-Z0-9_]* ]]; then
|
||||
IPREFIX="$IPREFIX${PREFIX%%[a-zA-Z0-9_]#}"
|
||||
|
@ -9,10 +9,4 @@ if [[ "$SUFFIX" = *[^a-zA-Z0-9_]* ]]; then
|
|||
SUFFIX="${SUFFIX%%[^a-zA-Z0-9_]*}"
|
||||
fi
|
||||
|
||||
compgen -v
|
||||
#defcomp -math-
|
||||
|
||||
IPREFIX="$IPREFIX${PREFIX%[a-zA-Z0-9_]*}"
|
||||
PREFIX="${PREFIX##*[^a-zA-Z0-9_]}"
|
||||
|
||||
compgen -v
|
||||
_parameters
|
||||
|
|
Loading…
Reference in a new issue