summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_files6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1fc4ef696..4dab40c8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-03 Bart Schaefer <schaefer@zsh.org>
+
+ * 14217: Completion/Unix/Type/_files: Fix processing of the -F
+ option so that it doesn't stomp on other options.
+
2001-05-03 Oliver Kiddle <opk@zsh.org>
* 14216: Completion/Unix/Command/.distfiles,
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files
index 03453bc48..1385bfc97 100644
--- a/Completion/Unix/Type/_files
+++ b/Completion/Unix/Type/_files
@@ -12,9 +12,9 @@ if (( $tmp[(I)-g*] )); then
[[ "$glob" = *[^\\][[:blank:]]* ]] &&
glob="{${glob//(#b)([^\\])[[:blank:]]##/${match[1]},}}"
fi
-ign=$opts[(I)-F]
-if (( ign )); then
- ign=( $=opts[ign+1] )
+tmp=$opts[(I)-F]
+if (( tmp )); then
+ ign=( $=opts[tmp+1] )
if [[ $ign = _comp_ignore ]]; then
ign=( $_comp_ignore )
else