* PATCH: newline display problem in completion lists
@ 2007-02-13 21:50 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2007-02-13 21:50 UTC (permalink / raw)
To: Zsh hackers list
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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-13 21:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13 21:50 PATCH: newline display problem in completion lists Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).