Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: debug for complist
- X-seq: zsh-workers 23258
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: debug for complist
- Date: Mon, 02 Apr 2007 14:55:42 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
The debugging I added for complist is overagressive and produces
warnings when it shouldn't. I think the following is the right fix.
Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.101
diff -u -r1.101 complist.c
--- Src/Zle/complist.c 30 Mar 2007 09:32:17 -0000 1.101
+++ Src/Zle/complist.c 2 Apr 2007 13:49:54 -0000
@@ -1585,7 +1585,8 @@
Cmatch m;
int len, subcols = 0, stop = 0, ret = 0;
- DPUTS2(ml >= mlines, "clprintm called with ml too large (%d/%d)",
+ DPUTS2(mselect >= 0 && ml >= mlines,
+ "clprintm called with ml too large (%d/%d)",
ml, mlines);
if (g != last_group)
*last_cap = '\0';
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author