···195195 if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then
196196 __${name}_debug "deactivating file completion"
197197198198- # We must return an error code here to let zsh know that there were no
199199- # completions found by _describe; this is what will trigger other
200200- # matching algorithms to attempt to find completions.
201201- # For example zsh can match letters in the middle of words.
202202- return 1
198198+ # Return 0 to indicate completion is finished and prevent zsh from
199199+ # trying other completion algorithms (which could cause hanging).
200200+ # We use NoFileComp directive to explicitly disable file completion.
201201+ return 0
203202 else
204203 # Perform file completion
205204 __${name}_debug "Activating file completion"