1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 20:40:57 +02:00

29268: extra dupstring() for value to be used in completion match group

This commit is contained in:
Peter Stephenson 2011-05-14 00:36:06 +00:00
parent 68457252ea
commit f61ae85acf
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2011-05-14 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 29268: Src/Zle/compcore.c: dupstring() the value that's
going to be used for prpre, whatever the heck that is.
* 29267: configure.ac, Src/mem.c, Src/zsh.h, Src/Zle/comp.h,
Src/Zle/compcore.c, Src/Zle/compctl.c, Src/Zle/complist.c,
Src/Zle/compresult.c: add --enable-zsh-heap-debug and use
@ -14695,5 +14698,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5300 $
* $Revision: 1.5301 $
*****************************************************

View file

@ -2344,7 +2344,7 @@ addmatches(Cadata dat, char **argv)
dat->pre = dupstring(dat->pre);
if (dat->suf)
dat->suf = dupstring(dat->suf);
if (!dat->prpre && (dat->prpre = oppre)) {
if (!dat->prpre && (dat->prpre = dupstring(oppre))) {
singsub(&(dat->prpre));
untokenize(dat->prpre);
} else