diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-02-25 09:09:31 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-02-25 09:09:31 +0000 |
commit | 8dcd8e54c54baddfb075d92c03f53117c7e1e6b1 (patch) | |
tree | 1ad07ef9693ff55eaed00a05c60b630877ecdaf0 /Completion/Base/Utility/_guard | |
parent | 5b34b8ddbaa9305a04864256411c21a5e0a6bd7b (diff) | |
download | zsh-8dcd8e54c54baddfb075d92c03f53117c7e1e6b1.tar.gz zsh-8dcd8e54c54baddfb075d92c03f53117c7e1e6b1.tar.xz zsh-8dcd8e54c54baddfb075d92c03f53117c7e1e6b1.zip |
make _guard use `_mesage -e'; make `_message -e' use $curtag as a default; change uses of _guard (16708)
Diffstat (limited to 'Completion/Base/Utility/_guard')
-rw-r--r-- | Completion/Base/Utility/_guard | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Completion/Base/Utility/_guard b/Completion/Base/Utility/_guard index 4c07fe1b9..ff62981ce 100644 --- a/Completion/Base/Utility/_guard +++ b/Completion/Base/Utility/_guard @@ -1,17 +1,12 @@ #autoload -local mesg pat garbage +local garbage -mesg=() -zparseopts -K -D -a garbage M: J: V: 1 2 n F: X:=mesg +zparseopts -K -D -a garbage M: J: V: 1 2 n F: X: [[ "$PREFIX$SUFFIX" != $~1 ]] && return 1 -if [[ $# -gt 1 || $#mesg -eq 0 ]]; then - shift - _message "$*" -else - _message -r "$mesg[2]" -fi +shift +_message -e "$*" [[ -n "$PREFIX$SUFFIX" ]] |