diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-05-14 00:36:06 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-05-14 00:36:06 +0000 |
commit | f61ae85acfef8deefd7a5f2be3b36f6f79384a9d (patch) | |
tree | 4157e34825b73263a57f2601eb49e68725e54e6f | |
parent | 68457252ea49cd7dc7c042de9b7b770c63dc2200 (diff) | |
download | zsh-f61ae85acfef8deefd7a5f2be3b36f6f79384a9d.tar.gz zsh-f61ae85acfef8deefd7a5f2be3b36f6f79384a9d.tar.xz zsh-f61ae85acfef8deefd7a5f2be3b36f6f79384a9d.zip |
29268: extra dupstring() for value to be used in completion match group
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/compcore.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index abb3ca166..715556c0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 $ ***************************************************** diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 9c6f0673a..5514e2e1d 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -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 |