about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-05-03 17:07:24 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-05-03 17:07:24 +0000
commit35fa37f5a2787a64314f50e01247ab904ec79b26 (patch)
treee59888e4b4c1b451656f487f73f5b859b010a4ac
parent36546001bd7960319d39937050739d2269da5f20 (diff)
downloadzsh-35fa37f5a2787a64314f50e01247ab904ec79b26.tar.gz
zsh-35fa37f5a2787a64314f50e01247ab904ec79b26.tar.xz
zsh-35fa37f5a2787a64314f50e01247ab904ec79b26.zip
Fix _files -F
-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