summary refs log tree commit diff
path: root/Completion/Base/Utility/_guard
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-02-25 09:09:31 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-02-25 09:09:31 +0000
commit8dcd8e54c54baddfb075d92c03f53117c7e1e6b1 (patch)
tree1ad07ef9693ff55eaed00a05c60b630877ecdaf0 /Completion/Base/Utility/_guard
parent5b34b8ddbaa9305a04864256411c21a5e0a6bd7b (diff)
downloadzsh-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/_guard13
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" ]]