summary refs log tree commit diff
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-11-13 13:01:47 -0600
committerdana <dana@dana.is>2018-11-13 13:01:47 -0600
commitdf12f6cd2f8f4a9523e78d1c29d3abad03622036 (patch)
tree128578b1fa2e6f5455f44c065f62ef78d78cace4
parent5ad76492af8931added1ae9600309d915d1427a5 (diff)
downloadzsh-df12f6cd2f8f4a9523e78d1c29d3abad03622036.tar.gz
zsh-df12f6cd2f8f4a9523e78d1c29d3abad03622036.tar.xz
zsh-df12f6cd2f8f4a9523e78d1c29d3abad03622036.zip
unposted (cf. 43800): Update strftime completion
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Command/_strftime6
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cba03c71..5bccfa75b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-11-13  dana  <dana@dana.is>
 
+	* unposted (cf. 43800): Completion/Zsh/Command/_strftime: Update
+	strftime completion for nanoseconds change
+
 	* 43800: Doc/Zsh/mod_datetime.yo, Src/Modules/datetime.c,
 	Test/V09datetime.ztst: Add nanosecond support to strftime built-in
 
diff --git a/Completion/Zsh/Command/_strftime b/Completion/Zsh/Command/_strftime
index 24ff7dc3e..0849f1c85 100644
--- a/Completion/Zsh/Command/_strftime
+++ b/Completion/Zsh/Command/_strftime
@@ -4,9 +4,11 @@ local ret=1 expl
 
 _arguments -S -A '-*' -s \
   '-q[run quietly]' \
-  '-r[reverse lookup using strptime]' \
+  '(3)-r[reverse lookup using strptime]' \
   '-s+[assign result to parameter]:param:_parameters' \
   '1:format: _date_formats zsh' \
-  '2:epoch time (or date string with -r)' && ret=0
+  '2:epoch time (or date string with -r)' \
+  '3:nanoseconds' \
+&& ret=0
 
 return ret