Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Corrected style test in prediction
- X-seq: zsh-workers 9837
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Corrected style test in prediction
- Date: Wed, 23 Feb 2000 11:46:57 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Wed, 23 Feb 2000 09:44:18 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> Sven, please confirm ... I'm never sure about the number of trailing colons.
>
> Index: Functions/Zle/predict-on
> ===================================================================
> @@ -122,7 +122,7 @@
> then
> compstate[list]=''
> compstate[force_list]=yes
> - elif zstyle -t ":completion:predict::::" list always
> + elif zstyle -t ":completion:::predict::" list always
> then
> compstate[force_list]=yes
> fi
The number of colons is still correct, but the original context name
was correct, too. The `predict' was stored in the `function' field of
the context name, indicating that completion was called from predict.
However, the other call to zstyle had a missing colon, the one before
the (not-given) tag.
The patch also fixes a type in _gunzip -- as shown in Peter's guide.
Bye
Sven
diff -ru ../z.old/Completion/User/_gunzip Completion/User/_gunzip
--- ../z.old/Completion/User/_gunzip Wed Feb 23 10:37:24 2000
+++ Completion/User/_gunzip Wed Feb 23 11:20:56 2000
@@ -3,4 +3,4 @@
local expl
_description files expl 'compressed file'
-_files "$expl[@]" -g '*.([tT]|)[gG][z]'
+_files "$expl[@]" -g '*.([tT]|)[gG][zZ]'
diff -ru ../z.old/Functions/Zle/predict-on Functions/Zle/predict-on
--- ../z.old/Functions/Zle/predict-on Wed Feb 23 09:03:49 2000
+++ Functions/Zle/predict-on Wed Feb 23 11:45:21 2000
@@ -64,7 +64,7 @@
# get out of that `case'.
repeat 1
do
- zstyle -s ":completion:${curcontext}" cursor crs
+ zstyle -s ":completion:${curcontext}:" cursor crs
case $crs in
(complete)
# At the place where the completion left it, if it is after
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author