summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-07-17 08:05:56 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-07-17 08:05:56 +0000
commitd666896fa3e75e65fb26240d4164e5130b2a3392 (patch)
tree10fe64063983bb989e9c7dc97bf09c79fae15342
parent5d04a4010a39211f25ea8464107cae28bf85469d (diff)
downloadzsh-d666896fa3e75e65fb26240d4164e5130b2a3392.tar.gz
zsh-d666896fa3e75e65fb26240d4164e5130b2a3392.tar.xz
zsh-d666896fa3e75e65fb26240d4164e5130b2a3392.zip
don't treat non-option arguments as options (12266)
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/computil.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9cd0cd46c..8ca124c53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-17  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 12266: Src/Zle/computil.c: don't treat non-option arguments as
+ 	options
+	
 2000-07-17  Wayne Davison  <wayned@users.sourceforge.net>
 
 	* 12265: Src/hist.c: Fixed gethistent().  Fixed a race condition
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index c26e9abc4..ae3238428 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1112,7 +1112,7 @@ ca_get_sopt(Cadef d, char *line, char **end, LinkList *lp)
 	    }
 	} else if (!p || (p && !p->active))
 	    return NULL;
-	pp = p;
+	pp = (p->name[0] == pre ? p : NULL);
 	p = NULL;
     }
     if (pp && end)