TW-1729: zsh completion: Fix edge case with empty database

This commit is contained in:
Daniel Shahaf 2015-11-24 03:59:05 +00:00 committed by Paul Beckingham
parent ce03d38c7d
commit 5db328f95c

View file

@ -138,8 +138,10 @@ task_dates=(
) )
local -a task_zshids local -a task_zshids
if (( $#_task_zshids )); then
_regex_words values 'task IDs' $_task_zshids _regex_words values 'task IDs' $_task_zshids
task_zshids=("$reply[@]") task_zshids=("$reply[@]")
fi
_regex_words values 'task frequencies' \ _regex_words values 'task frequencies' \
'daily:Every day' \ 'daily:Every day' \