From af8a88e4f5c3ffe5a9d8005709e94b641bc21261 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 29 Mar 2007 21:35:39 +0000 Subject: 23248: Completion listing problem with lines nearly screen width If compiled with debug send dputs() output to $ZSH_DEBUG_LOG if defined. --- Src/Zle/complist.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src/Zle/complist.c') 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'; -- cgit 1.4.1