Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pws-10 + completion broken ?
- X-seq: zsh-workers 5586
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: pws-10 + completion broken ?
- Date: Mon, 1 Mar 1999 16:32:09 +0100 (MET)
- In-reply-to: jarausch@xxxxxxxxxxxxxxxxxxxxxxxxx's message of Mon, 1 Mar 1999 16:12:11 +0100 (CST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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