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

Re: PATCH: 3.1.6-pws-11: Completion suggestions + fixes + sorting tags



Bart Schaefer wrote:

> ...
> 
> BTW, predict-on is still using _style as well.  Is this the correct fix?

The patch below won't make any difference in behaviour (since the
function is invoked from _main_complete, where $curcontext is empty),
but it is cleaner.

Bye
 Sven

diff -ru ../z.old/Functions/Zle/predict-on Functions/Zle/predict-on
--- ../z.old/Functions/Zle/predict-on	Thu Dec 16 09:24:42 1999
+++ Functions/Zle/predict-on	Thu Dec 16 09:25:04 1999
@@ -119,7 +119,7 @@
   then
     compstate[list]=''
     compstate[force_list]=yes
-  elif zstyle ":completion${curcontext}:predict" list always ]]
+  elif zstyle ":completion:predict${curcontext}" list always ]]
   then
     compstate[force_list]=yes
   fi

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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