summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_refresh.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3295da0ef..3660ebac3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-15  Andrey Borzenkov  <bor@zsh.org>
+
+	* 21622: Src/Zle/zle_refresh.c: metafy line back before calling
+	completion code in zrefresh()
+
 2005-08-15  Clint Adams  <clint@zsh.org>
 
 	* 21619: Src/string.c, Src/utils.c, Src/Zle/zle.h: define wide
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index fe277a5b4..ce90be845 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -746,8 +746,13 @@ singlelineout:
 	zfree(tmpline, tmpll);
 
     /* if we have a new list showing, note it; if part of the list has been
-    overwritten, redisplay it. */
+    overwritten, redisplay it. We have to metafy line back before calling
+    completion code */
     if (showinglist == -2 || (showinglist > 0 && showinglist < nlnct)) {
+	if (remetafy) {
+	    metafy_line();
+	    remetafy = 0;
+	}
 	inlist = 1;
 	listmatches();
 	inlist = 0;