about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-02-13 21:54:41 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-02-13 21:54:41 +0000
commitbd6baa2ede23c152a9941c3312d93f1f0b1392e8 (patch)
tree3e10404334adf6e821a86011f9b3ab53381cb478
parent10f36dd29ba1b22aa69ccc09dc9de84d89830613 (diff)
downloadzsh-bd6baa2ede23c152a9941c3312d93f1f0b1392e8.tar.gz
zsh-bd6baa2ede23c152a9941c3312d93f1f0b1392e8.tar.xz
zsh-bd6baa2ede23c152a9941c3312d93f1f0b1392e8.zip
23172: typo displaying multiline explanation strings
-rw-r--r--ChangeLog6
-rw-r--r--Src/Zle/zle_tricky.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 50f3088c6..8df0fac2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-13  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 23172: Src/Zle/zle_tricky.c: typo fixing line wrapping
+	in completion displays caused too many lines in multiline
+	explanation strings.
+
 2007-02-13  Peter Stephenson  <pws@csr.com>
 
 	* 23168: Src/Modules/tcp.c: error when failing to bind
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 72d72d54f..68e104370 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -2247,7 +2247,8 @@ printfmt(char *fmt, int n, int dopr, int doesc)
 		}
 		l += 1 + ((cc - 1) / columns);
 		cc = 0;
-		putc('\n', shout);
+		if (dopr)
+		    putc('\n', shout);
 		p++;
 	    } else {
 		convchar_t cchar;