From d5b3716e1c96cd9529b59f6a31602212e068f223 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 10 Aug 2006 16:34:19 +0000 Subject: 22597: back off two column-subtraction hunks --- Src/Zle/complist.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 8f1a24385..c90af8480 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1055,8 +1055,12 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop) if (stat && n) mfirstl = -1; - mlprinted = l + (cc ? ((cc-1) / columns) : 0); - return mlprinted; + /* + * *Not* subtracting 1 from cc at this point appears to be + * correct. C.f. printfmt in zle_tricky.c. + */ + mlprinted = l + (cc / columns); + return mlprinted; } /* This is like zputs(), but allows scrolling. */ -- cgit 1.4.1