From b78caa8ec49317e7d42c8c0b0b71ae196f253524 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 11 Mar 2008 14:31:09 +0000 Subject: 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. --- ChangeLog | 6 ++++++ Src/Zle/zle_main.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c8b152cbc..fb7735a93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-11 Barton E. Schaefer + + * 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 * unposted: Src/hist.c: make test in 24699 for the extra diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 8df07e7ef..0b109cd19 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -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); } -- cgit 1.4.1