diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); |