diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-03-18 18:27:51 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-03-18 18:27:51 +0000 |
commit | 63f6742e9aae5238c83c3c7223a29e044e45d66f (patch) | |
tree | 1e0690016ad7d8718aef47bc6dc6a728177ccc32 /Src | |
parent | bcdad28d3e03f3e70a5f3d6b414b9d08f651c65a (diff) | |
download | zsh-63f6742e9aae5238c83c3c7223a29e044e45d66f.tar.gz zsh-63f6742e9aae5238c83c3c7223a29e044e45d66f.tar.xz zsh-63f6742e9aae5238c83c3c7223a29e044e45d66f.zip |
21014: remember_edits() was broken
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_hist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index f187d171b..67827d530 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -107,7 +107,9 @@ remember_edits(void) ZS_memcmp(ent->zle_text, zleline, zlell) != 0) { if (ent->zle_text) free(ent->zle_text); - ent->zle_text = stringaszleline(ent->text, &ent->zle_len, NULL); + ent->zle_text = zalloc(zlell * ZLE_CHAR_SIZE); + ent->zle_len = zlell; + ZS_memcpy(ent->zle_text, zleline, zlell); } } } |