zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: zle -F with no arguments
@ 2002-06-05 20:57 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2002-06-05 20:57 UTC (permalink / raw)
  To: Zsh hackers list

The amount of time I waste...

`zle -F' on its own could fail because it looked at an undefined
argument.

Index: Src/Zle/zle_thingy.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_thingy.c,v
retrieving revision 1.5
diff -u -r1.5 zle_thingy.c
--- Src/Zle/zle_thingy.c	21 May 2002 11:10:17 -0000	1.5
+++ Src/Zle/zle_thingy.c	5 Jun 2002 20:55:03 -0000
@@ -697,7 +712,7 @@
 
     if (ops['L'] || !*args) {
 	/* Listing handlers. */
-	if (args[1]) {
+	if (*args && args[1]) {
 	    zwarnnam(name, "too many arguments for -FL", NULL, 0);
 	    return 1;
 	}

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


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

only message in thread, other threads:[~2002-06-05 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05 20:57 PATCH: zle -F with no arguments 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).