Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: newline display problem in completion lists
- X-seq: zsh-workers 23172
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: newline display problem in completion lists
- Date: Tue, 13 Feb 2007 21:50:05 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Good news on the problem where ^xh goes down too many lines.
You can see it quite easily:
_frob() { compadd -UX $'foo\nand\nbar' -n ''; }
compdef _frob frob
frob ^D
It turns out just to be a simple typo. I'm extremely relieved.
Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.83
diff -u -r1.83 zle_tricky.c
--- Src/Zle/zle_tricky.c 26 Jan 2007 19:11:48 -0000 1.83
+++ Src/Zle/zle_tricky.c 13 Feb 2007 21:47:40 -0000
@@ -2247,7 +2247,8 @@
}
l += 1 + ((cc - 1) / columns);
cc = 0;
- putc('\n', shout);
+ if (dopr)
+ putc('\n', shout);
p++;
} else {
convchar_t cchar;
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author