about summary refs log tree commit diff
path: root/Completion/Base/Utility
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-30 08:42:55 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-30 08:42:55 +0000
commit75d5e9bb8b42282935f54b6d4750aea7ae6d5844 (patch)
tree4f69df50376c8103fd4d3e5a086845f93310396b /Completion/Base/Utility
parent1619df1c5d797c3b25fc3224e49cac358c7450f6 (diff)
downloadzsh-75d5e9bb8b42282935f54b6d4750aea7ae6d5844.tar.gz
zsh-75d5e9bb8b42282935f54b6d4750aea7ae6d5844.tar.xz
zsh-75d5e9bb8b42282935f54b6d4750aea7ae6d5844.zip
(15526)
Diffstat (limited to 'Completion/Base/Utility')
-rw-r--r--Completion/Base/Utility/_arguments8
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_arguments b/Completion/Base/Utility/_arguments
index 006e80374..0551afcf2 100644
--- a/Completion/Base/Utility/_arguments
+++ b/Completion/Base/Utility/_arguments
@@ -428,6 +428,14 @@ if (( $# )) && comparguments -i "$autod" "$singopt[@]" "$@"; then
 
   if [[ -n "$aret" ]]; then
     [[ -n $rawret ]] && return 300
+
+### Returning non-zero would allow the calling function to add its own
+### completions if we generated only options and have to use a ->state
+### action.  But if that then doesn't generate matches, the calling
+### function's return value would be wrong unless it compares
+### $compstate[nmatches] to its previous value.  Ugly.
+###
+###    return 1
   else
     [[ -n "$noargs" && nm -eq "$compstate[nmatches]" ]] && _message "$noargs"
   fi