summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-04-14 20:04:06 +0000
committerClint Adams <clint@users.sourceforge.net>2007-04-14 20:04:06 +0000
commit2f5b3f97bd76c49e28360592decca9ec65368486 (patch)
treef736a130ab11e0f4e5a1f36c6e68d47a1c4ee34f
parent05ff4fb3abd960b99d6f14b0def7e9187b9c659e (diff)
downloadzsh-2f5b3f97bd76c49e28360592decca9ec65368486.tar.gz
zsh-2f5b3f97bd76c49e28360592decca9ec65368486.zip
23275: change order of arguments to _arguments so that options will actually be completed.
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/_date4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 17f851db6..231d2da47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-14 Clint Adams <schizo@debian.org>
+
+ * 23275: Completion/Unix/Command/_date: change order of
+ arguments to _arguments so that options will actually be
+ completed.
+
2007-04-13 Peter Stephenson <pws@csr.com>
* 23273: Src/params.c, Test/D04parameter.ztst: bad patterns
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date
index 2dc977dc8..8f85af1ad 100644
--- a/Completion/Unix/Command/_date
+++ b/Completion/Unix/Command/_date
@@ -43,6 +43,6 @@ else
fi
_arguments \
+ "$args[@]" \
'-u[display or set time in UTC]' \
- ':format or date' \
- $args[@]
+ ':format or date'