about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-03-29 21:35:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-03-29 21:35:39 +0000
commitaf8a88e4f5c3ffe5a9d8005709e94b641bc21261 (patch)
tree4de7cec4341768e9209bd00bea48959233646a9a /Src/Zle/complist.c
parent6bddc704e8355313593875446e6b0b3903d4c304 (diff)
downloadzsh-af8a88e4f5c3ffe5a9d8005709e94b641bc21261.tar.gz
zsh-af8a88e4f5c3ffe5a9d8005709e94b641bc21261.tar.xz
zsh-af8a88e4f5c3ffe5a9d8005709e94b641bc21261.zip
23248: Completion listing problem with lines nearly screen width
If compiled with debug send dputs() output to $ZSH_DEBUG_LOG if defined.
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index f06a5e8f4..43c93cf54 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1139,6 +1139,10 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop)
 	    if (dopr == 1) {
 		if (ml == mlend - 1 && (cc % columns) == columns - 1) {
 		    dopr = 0;
+		    if (*p == Meta)
+			p += 2;
+		    else
+			p++;
 		    continue;
 		}
 		while (len--) {
@@ -1580,6 +1584,8 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width)
     Cmatch m;
     int len, subcols = 0, stop = 0, ret = 0;
 
+    DPUTS2(ml >= mlines, "clprintm called with ml too large (%d/%d)",
+	   ml, mlines);
     if (g != last_group)
         *last_cap = '\0';