1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00

21014: remember_edits() was broken

This commit is contained in:
Peter Stephenson 2005-03-18 18:27:51 +00:00
parent bcdad28d3e
commit 63f6742e9a
2 changed files with 6 additions and 1 deletions

@ -1,5 +1,8 @@
2005-03-18 Peter Stephenson <pws@csr.com>
* 21014: Src/Zle/zle_hist.c: remember_edits() was broken,
which meant that searching the current line didn't work.
* zsh-users/8609: Doc/Zsh/expn.yo: document order of (u), (o)
and (O) parameter expansion flags.

@ -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);
}
}
}