From 754503c60d7323a7456f4458da9d80138d32b4ba Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 20 Aug 2006 22:28:17 +0000 Subject: 22651: failed to unmetafy bytes for output --- Src/Zle/complist.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 421901b78..886b4a685 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -621,7 +621,11 @@ clprintfmt(Listcols c, char *p, int ml) if (ml == mlend - 1 && (cc % columns) == columns - 1) return 0; - putc(*p, shout); + if (*p == Meta) { + p++; + putc(*p ^ 32, shout); + } else + putc(*p, shout); if ((beg = !(cc % columns))) ml++; if (mscroll && !(cc % columns) && @@ -1137,8 +1141,14 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop) dopr = 0; continue; } - while (len--) - putc(*p++, shout); + while (len--) { + if (*p == Meta) { + len--; + p++; + putc(*p++ ^ 32, shout); + } else + putc(*p++, shout); + } if ((beg = !(cc % columns)) && !stat) { ml++; fputs(" \010", shout); -- cgit 1.4.1