b1561c662b8629a33f5ffc89fd1be93b65e5c541

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

Update taskwarrior completion to 2.5.1 (#5171)

Diff

 1diff --git a/plugins/taskwarrior/_task b/plugins/taskwarrior/_task
 2index afa30d45a14991d459056c0d2cecd187c568c933..46628be94534407c176c261731305e59f4b80944 100644
 3--- a/plugins/taskwarrior/_task
 4+++ b/plugins/taskwarrior/_task
 5@@ -1,6 +1,6 @@
 6 #compdef task
 7 #
 8-# Copyright 2010 - 2015 Johannes Schlatow
 9+# Copyright 2010 - 2016 Johannes Schlatow
10 # Copyright 2009 P.C. Shyamshankar
11 #
12 # Permission is hereby granted, free of charge, to any person obtaining a copy
13@@ -26,7 +26,6 @@
14 typeset -g _task_cmds _task_projects _task_tags _task_config _task_modifiers
15 _task_projects=($(task _projects))
16 _task_tags=($(task _tags))
17-_task_ids=($(task _ids))
18 _task_zshids=( ${(f)"$(task _zshids)"} )
19 _task_config=($(task _config))
20 _task_columns=($(task _columns))
21@@ -139,8 +138,10 @@ task_dates=(
22 )
23 
24 local -a task_zshids
25-_regex_words values 'task IDs' $_task_zshids
26-task_zshids=("$reply[@]")
27+if (( $#_task_zshids )); then
28+  _regex_words values 'task IDs' $_task_zshids
29+  task_zshids=("$reply[@]")
30+fi
31 
32 _regex_words values 'task frequencies' \
33   'daily:Every day' \