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

Re: pws-10 + completion broken ?



Helmut Jarausch wrote:

> Hi,
> I've just install pws-10 plus patches upto 5579.
> 
> Now the (simplest) completion seems broken.
> 
> Assume there is a file  ChangeLog
> 
> typing
> 
> cat Chan<Tab>
> just clears the command line.
> 
> Have I missed something?

No, I have missed something, two braces to be more exact. But that
also revealed another bug in addmatch().

Sorry!

Bye
 Sven

diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c	Mon Mar  1 13:20:07 1999
+++ Src/Zle/zle_tricky.c	Mon Mar  1 16:28:36 1999
@@ -4347,6 +4347,7 @@
 
     if (incompfunc)
 	s = dupstring(s);
+    e = s + sl;
     if (!addwhat) {
 	test = 1;
     } else if (addwhat == -1 || addwhat == -5 || addwhat == -6 ||
@@ -6580,11 +6581,12 @@
     if ((t = cc->mask & CC_BUILTINS))
 	/* Add builtins. */
 	dumphashtable(builtintab, t | (cc->mask & (CC_DISCMDS|CC_EXCMDS)));
-    if ((t = cc->mask & CC_EXTCMDS))
+    if ((t = cc->mask & CC_EXTCMDS)) {
 	/* Add external commands */
 	if (isset(HASHLISTALL))
 	    cmdnamtab->filltable(cmdnamtab);
 	dumphashtable(cmdnamtab, t | (cc->mask & (CC_DISCMDS|CC_EXCMDS)));
+    }
     if ((t = cc->mask & CC_RESWDS))
 	/* Add reserved words */
 	dumphashtable(reswdtab, t | (cc->mask & (CC_DISCMDS|CC_EXCMDS)));

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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