diff options
author | Marc Cornellà <marc.cornella@live.com> | 2016-06-17 11:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 11:43:08 +0200 |
commit | b1561c662b8629a33f5ffc89fd1be93b65e5c541 (patch) | |
tree | 1d607588aaaf19d8625163e0b8d9e5cec475c40c /plugins/taskwarrior | |
parent | 551abfcbb48a0c001eadef80abc3276af4e9ad26 (diff) | |
download | zsh-b1561c662b8629a33f5ffc89fd1be93b65e5c541.tar.gz zsh-b1561c662b8629a33f5ffc89fd1be93b65e5c541.tar.bz2 zsh-b1561c662b8629a33f5ffc89fd1be93b65e5c541.zip |
Update taskwarrior completion to 2.5.1 (#5171)
Diffstat (limited to 'plugins/taskwarrior')
-rw-r--r-- | plugins/taskwarrior/_task | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/taskwarrior/_task b/plugins/taskwarrior/_task index afa30d45a..46628be94 100644 --- a/plugins/taskwarrior/_task +++ b/plugins/taskwarrior/_task @@ -1,6 +1,6 @@ #compdef task # -# Copyright 2010 - 2015 Johannes Schlatow +# Copyright 2010 - 2016 Johannes Schlatow # Copyright 2009 P.C. Shyamshankar # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -26,7 +26,6 @@ typeset -g _task_cmds _task_projects _task_tags _task_config _task_modifiers _task_projects=($(task _projects)) _task_tags=($(task _tags)) -_task_ids=($(task _ids)) _task_zshids=( ${(f)"$(task _zshids)"} ) _task_config=($(task _config)) _task_columns=($(task _columns)) @@ -139,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' \ |