diff --git a/scripts/zsh/_task b/scripts/zsh/_task index d2835d7c7..a18027dec 100644 --- a/scripts/zsh/_task +++ b/scripts/zsh/_task @@ -138,8 +138,10 @@ task_dates=( ) local -a task_zshids -_regex_words values 'task IDs' $_task_zshids -task_zshids=("$reply[@]") +if (( $#_task_zshids )); then + _regex_words values 'task IDs' $_task_zshids + task_zshids=("$reply[@]") +fi _regex_words values 'task frequencies' \ 'daily:Every day' \