Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cdablevars and cd completion in 3.1.5
- X-seq: zsh-workers 4707
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: cdablevars and cd completion in 3.1.5
- Date: Mon, 7 Dec 1998 12:58:12 +0100 (MET)
- In-reply-to: Sven Wischnowsky's message of Thu, 3 Dec 1998 11:17:45 +0100 (MET)
I wrote:
> ... [ message 4698 ]
The patch in this message contained a `fix' for quoting words
resulting from completion. This looked good until I tried completion
on a parameter name. So the patch below removes the corresponding
changes again.
Sorry!
Bye
Sven
*** os/Zle/zle_tricky.c Thu Dec 3 11:18:40 1998
--- Src/Zle/zle_tricky.c Mon Dec 7 12:23:14 1998
***************
*** 2281,2289 ****
int l, r = 0, ocs, a = cs;
if (m->ipre) {
! char *p = quotename(m->ipre, NULL, NULL, NULL);
!
! inststrlen(p, 1, (l = strlen(p)));
r += l;
}
if (m->pre) {
--- 2281,2287 ----
int l, r = 0, ocs, a = cs;
if (m->ipre) {
! inststrlen(m->ipre, 1, (l = strlen(m->ipre)));
r += l;
}
if (m->pre) {
***************
*** 4814,4820 ****
* to insert any unambiguous prefix and suffix, if possible. */
if (ainfo->iprefix && *ainfo->iprefix) {
! inststrlen(quotename(ainfo->iprefix, NULL, NULL, NULL), 1, -1);
inststrlen(ainfo->pprefix, 1, -1);
ps = ainfo->iaprefix;
lc = ainfo->ilinecl;
--- 4812,4818 ----
* to insert any unambiguous prefix and suffix, if possible. */
if (ainfo->iprefix && *ainfo->iprefix) {
! inststrlen(ainfo->iprefix, 1, -1);
inststrlen(ainfo->pprefix, 1, -1);
ps = ainfo->iaprefix;
lc = ainfo->ilinecl;
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author