1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 12:11:26 +01:00

24703: Src/Zle/zle_main.c: clear trashedzle when first starting

the editor in zleread(), so that reexpandprompt() from the first
zrefresh() won't expand the prompt an extra time.
This commit is contained in:
Bart Schaefer 2008-03-11 14:31:09 +00:00
parent e9b11fa9f0
commit b78caa8ec4
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-03-11 Barton E. Schaefer <schaefer@zsh.org>
* 24703: Src/Zle/zle_main.c: clear trashedzle when first starting
the editor in zleread(), so that reexpandprompt() from the first
zrefresh() won't expand the prompt an extra time.
2008-03-11 Peter Stephenson <pws@csr.com>
* unposted: Src/hist.c: make test in 24699 for the extra

View file

@ -1131,6 +1131,7 @@ zleread(char **lp, char **rp, int flags, int context)
eofsent = 0;
resetneeded = 0;
fetchttyinfo = 0;
trashedzle = 0;
raw_lp = lp;
lpromptbuf = promptexpand(lp ? *lp : NULL, 1, NULL, NULL);
pmpt_attr = txtchange;
@ -1721,7 +1722,8 @@ resetprompt(UNUSED(char **args))
/**/
mod_export void
zle_resetprompt(void)
{ reexpandprompt();
{
reexpandprompt();
if (zleactive)
redisplay(NULL);
}