about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)