Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: sudo completion problem



In article <hvobt2moz0v.fsf@xxxxxxxxxxxxxxx>,
  Tanaka Akira <akr@xxxxxxxx> writes:

> +	: "$_ra_actions[@]"

Oops.  Debugging code is remained.

Index: Completion/Base/_regex_arguments
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/_regex_arguments,v
retrieving revision 1.2
diff -u -r1.2 _regex_arguments
--- Completion/Base/_regex_arguments	2000/05/04 20:16:09	1.2
+++ Completion/Base/_regex_arguments	2000/05/04 20:38:50
@@ -22,7 +22,7 @@
 # pattern = "/" ( glob | "[]" ) "/" [ "+" | "-" ]
 # lookahead = "%" glob "%"
 # guard = "-" zsh-code-to-eval
-# caction = ":" zsh-code-to-eval
+# caction = ":" tag ":" descr ":" zsh-code-to-eval
 # action = "{" zsh-code-to-eval "}"
 
 ## regex word sequence definition:
@@ -81,7 +81,6 @@
 	_ra_left="$_ra_line[_ra_p1 + 1, _ra_p2]"
 	_ra_right="$_ra_line[_ra_p2 + 1, -1]"
 	compset -p $(( $#PREFIX - $#_ra_line + $_ra_p1 ))
-	: "$_ra_actions[@]"
 	tmp=("${(@)_ra_actions%%:*}")
 	if (( $#tmp )); then
 	  _tags "$tmp[@]"
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author