summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_date_formats6
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c7ee05a1..8c3f99d0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2021-02-07 Oliver Kiddle <opk@zsh.org>
+ * based on github #62: oxiedi@yandex.ru:
+ Completion/Unix/Type/_date_formats: return proper exit status
+
* github #66: DCsunset: Completion/Unix/Command/_todo.sh:
Add more commands to _todo.sh
diff --git a/Completion/Unix/Type/_date_formats b/Completion/Unix/Type/_date_formats
index 889a95779..55af7c591 100644
--- a/Completion/Unix/Type/_date_formats
+++ b/Completion/Unix/Type/_date_formats
@@ -1,6 +1,6 @@
#autoload
-local flag
+local flag ret=1
local -aU specs
local -A exclusion
@@ -106,5 +106,7 @@ for flag in ${(s..)PREFIX#%}; do
done
_describe -t date-format-specifier 'date format specifier' specs \
- -p "${(Q)PREFIX:-%}" -S ''
+ -p "${(Q)PREFIX:-%}" -S '' && ret=0
[[ $1 == zsh ]] && _message -e date-format-precision 'precision for %%. (1-9)'
+
+return ret