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

Re: PATCH: _value



Tanaka Akira wrote:

> ...
>
> is27e1u11% A='Doc/z<TAB>
> ->
> is27e1u11% A='Docz 
> 
> and
> 
> is27e1u11% A='Doc/<TAB>
> ->
> is27e1u11% A='Doc
> 
> and
> 
> is27e1u11% LDFLAGS=-LDoc/<TAB>
> ->
> is27e1u11% LDFLAGS=-LDoc
> 
> These slashes shouldn't be removed...

Yep. Wrong cline tested... Disgusting.

Bye
 Sven

diff -u oldsrc/Zle/compcore.c Src/Zle/compcore.c
--- oldsrc/Zle/compcore.c	Tue Nov  2 14:52:25 1999
+++ Src/Zle/compcore.c	Tue Nov  2 16:08:58 1999
@@ -1887,7 +1887,7 @@
 		p = bld_parts(ppre, ppl, ppl, &lp);
 
 	    if (lp->prefix && !(line->flags & (CLF_SUF | CLF_MID)) &&
-		!p->llen && !p->wlen && !p->olen) {
+		!lp->llen && !lp->wlen && !lp->olen) {
 		Cline lpp;
 
 		for (lpp = lp->prefix; lpp->next; lpp = lpp->next);
@@ -1952,7 +1952,7 @@
 	    for (p = lp = cp_cline(pline, 1); lp->next; lp = lp->next);
 
 	if (lp->prefix && !(line->flags & (CLF_SUF | CLF_MID)) &&
-	    !p->llen && !p->wlen && !p->olen) {
+	    !lp->llen && !lp->wlen && !lp->olen) {
 	    Cline lpp;
 
 	    for (lpp = lp->prefix; lpp->next; lpp = lpp->next);

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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