* Re: PATCH: Re: Approximate completion
@ 2000-01-04 10:40 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-01-04 10:40 UTC (permalink / raw)
To: zsh-workers
I wrote:
> But I forgot to update the cached
> prefix-length after extracting the flags.
Uh oh. Two more of these...
Bye
Sven
diff -ru ../z.old/Src/Zle/compcore.c Src/Zle/compcore.c
--- ../z.old/Src/Zle/compcore.c Tue Jan 4 10:15:43 2000
+++ Src/Zle/compcore.c Tue Jan 4 11:35:20 2000
@@ -1696,6 +1696,7 @@
}
pline = matchparts;
lpre += ml;
+ llpl -= ml;
bcp = ml;
bpadd = strlen(s) - ml;
} else {
@@ -1721,6 +1722,7 @@
}
sline = revert_cline(matchparts);
lsuf[llsl - ml] = '\0';
+ llsl -= ml;
bcs = ml;
bsadd = strlen(s) - ml;
} else {
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* PATCH: Re: Approximate completion
@ 2000-01-04 8:10 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-01-04 8:10 UTC (permalink / raw)
To: zsh-workers
Peter Stephenson wrote:
> Approximate completion seems to be be broken in some non-obvious way. If I
> try to complete 50dc.z to 50cd.ztst, the right completion appears as an
> argument to compadd, but nothing is inserted. Correction with ^Xc seems to
> work. Indeed, completing 50dc.zts works, too: since I have max errors set
> to 2, this suggest that for some reason it isn't matching with a * at the
> end of the test string at some point.
No. I had to make globbing flags be treated specially lately for
functions like _path_files that use hidden prefixes. The code now
takes the flags (if they are at the beginning of $PREFIX) and moves
them after the matched prefix. But I forgot to update the cached
prefix-length after extracting the flags.
Bye
Sven
diff -u -r oldsrc/Zle/compcore.c Src/Zle/compcore.c
--- oldsrc/Zle/compcore.c Wed Dec 29 22:26:15 1999
+++ Src/Zle/compcore.c Mon Jan 3 19:58:57 2000
@@ -1680,6 +1680,7 @@
p[1] = sav;
lpre = p + 1;
+ llpl -= gfl;
}
}
s = dat->ppre ? dat->ppre : "";
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-01-04 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-04 10:40 PATCH: Re: Approximate completion Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-01-04 8:10 Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).