From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re: experimental new style completion
Date: Thu, 21 Jan 1999 17:07:44 +0100 (MET) [thread overview]
Message-ID: <199901211607.RAA22270@beta.informatik.hu-berlin.de> (raw)
Another small fix to the new style completion stuff. This time it's
a memory problem: with -k you can give the code an array. When
building the things to put into the command line it uses the strings
in it before copying them. The only easy solution I currently see is
to move the call to dupstring() up, although that will sometimes
create copies that aren't needed. Hm.
Bye
Sven
*** Src/Zle/zle_tricky.c.old Thu Jan 21 17:02:28 1999
--- Src/Zle/zle_tricky.c Thu Jan 21 17:03:05 1999
***************
*** 2552,2557 ****
--- 2552,2559 ----
hn = (HashNode) t;
pm = (Param) t;
+ if (incompfunc)
+ s = dupstring(s);
if (!addwhat) {
test = 1;
} else if (addwhat == -1 || addwhat == -5 || addwhat == -6 ||
***************
*** 2687,2694 ****
}
if (!test)
return;
- if (incompfunc)
- s = dupstring(s);
if (!ms && !ispattern && ai->firstm) {
if ((test = sl - pfxlen(ai->firstm->str, s)) < ai->prerest)
ai->prerest = test;
--- 2689,2694 ----
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-01-21 16:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-21 16:07 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-01-22 16:30 Sven Wischnowsky
1999-01-22 14:50 Sven Wischnowsky
1999-01-22 16:18 ` Phil Pennock
1999-01-22 17:09 ` Bart Schaefer
1999-01-22 13:15 Sven Wischnowsky
1999-01-21 12:02 Sven Wischnowsky
1999-01-21 10:53 Sven Wischnowsky
1999-01-21 10:36 Sven Wischnowsky
1999-01-07 8:02 Sven Wischnowsky
1999-01-05 15:43 Sven Wischnowsky
1999-01-07 7:36 ` Bart Schaefer
1998-12-18 15:59 Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199901211607.RAA22270@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).