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

PATCH: 3.1.6-pws-3: _precommand



_normal sets _compskip to `pattern' before starting a completion; when
_precommand shifts the input array to start a new normal completion,
that means that pattern completions defined for the new command word
aren't recognised.  I haven't understood all the logic for _compskip
by a long way, but it seems as if it is wrong in this case, at least,
since completing after `noglob' etc. should be exactly the same as if
the precommand word wasn't there.

--- Completion/Base/_precommand~	Tue Apr 13 09:37:36 1999
+++ Completion/Base/_precommand	Tue Sep  7 14:46:04 1999
@@ -3,4 +3,7 @@
 shift words
 (( CURRENT-- ))
 
+# We now want to go back to doing ordinary completion on the new word,
+# so restore the default _compskip.
+_compskip=''
 _normal

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy



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