zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: debug for complist
@ 2007-04-02 13:55 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2007-04-02 13:55 UTC (permalink / raw)
  To: Zsh hackers list

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@csr.com>                  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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-02 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 13:55 PATCH: debug for complist 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).