mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
21764: unmetafication mangle zle history lines
This commit is contained in:
parent
4431ebe7c1
commit
d9bb1a52c9
@ -1,5 +1,8 @@
|
||||
2005-09-26 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 21764: Src/Zle/zle_hist.c: unmetafication mangled history lines
|
||||
in zle.
|
||||
|
||||
* unposted: Doc/Zsh/redirect.yo: alter text referring to process
|
||||
substitutions slightly.
|
||||
|
||||
|
@ -75,6 +75,8 @@ struct zle_text {
|
||||
static void
|
||||
zletext(Histent ent, struct zle_text *zt)
|
||||
{
|
||||
char *duptext;
|
||||
|
||||
if (ent->zle_text) {
|
||||
zt->text = ent->zle_text;
|
||||
zt->len = ent->zle_len;
|
||||
@ -82,8 +84,10 @@ zletext(Histent ent, struct zle_text *zt)
|
||||
return;
|
||||
}
|
||||
|
||||
zt->text = stringaszleline((unsigned char *)ent->text, 0,
|
||||
duptext = ztrdup(ent->text);
|
||||
zt->text = stringaszleline((unsigned char *)duptext, 0,
|
||||
&zt->len, NULL, NULL);
|
||||
zsfree(duptext);
|
||||
zt->alloced = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user