about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-07-22 19:54:29 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-07-22 19:54:29 +0000
commit38e0badcc3c9b1aaf0e518c736c8ec646217fab3 (patch)
treed93f103488ae6359fd0f7c19124986bd1215ad21
parent5b29fedad850299950195a1878fe4923778f9dcc (diff)
downloadzsh-38e0badcc3c9b1aaf0e518c736c8ec646217fab3.tar.gz
zsh-38e0badcc3c9b1aaf0e518c736c8ec646217fab3.tar.xz
zsh-38e0badcc3c9b1aaf0e518c736c8ec646217fab3.zip
25236: don't recalculate prompt if not redisplaying
-rw-r--r--Src/Zle/zle_refresh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index f43ad45e2..d48ff8b42 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1118,7 +1118,7 @@ zrefresh(void)
 	/* cheat on attribute unset */
 	txtunset(TXTBOLDFACE|TXTSTANDOUT|TXTUNDERLINE);
 
-	if (trashedzle)
+	if (trashedzle && !clearflag)
 	    reexpandprompt(); 
 	resetvideo();
 	resetneeded = 0;	/* unset */