From 56bf25cff98ec4db85d2a4f3b326368b70417d7b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 30 Mar 2007 09:32:17 +0000 Subject: unposted: better fix for complist line wrap from 23248 --- ChangeLog | 4 ++++ Src/Zle/complist.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8cb8d2b96..ba1dac873 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-30 Peter Stephenson + + * unposted: Src/Zle/complist.c: better fix for 23248. + 2007-03-29 Peter Stephenson * 23248: INSTALL, Src/utils.c, Src/zsh.h, Src/Zle/complist.c: diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 43c93cf54..d379874f2 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1139,10 +1139,7 @@ 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++; + p += len; continue; } while (len--) { @@ -1153,6 +1150,10 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop) } else putc(*p++, shout); } + /* + * TODO: the following doesn't allow for + * character widths greater than 1. + */ if ((beg = !(cc % columns)) && !stat) { ml++; fputs(" \010", shout); -- cgit 1.4.1