fix: completion
This commit is contained in:
1 file changed
-3
@@ -75,9 +75,6 @@ EOF
|
||||
_task_completions() {
|
||||
local reply
|
||||
local si=$IFS
|
||||
# NOTE: reply is built by splitting on newlines (IFS=$'\n'), so do NOT
|
||||
# collapse the lines with `tr '\n' ' '` before the command substitution,
|
||||
# or the whole list ends up as a single array element.
|
||||
IFS=$'
|
||||
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" ./task help | grep -A999 -e '---' | awk '{print $2}' | sed 's/^[[:space:]]*//' | grep -v '^$'))
|
||||
IFS=$si
|
||||
|
||||
Reference in new issue
Block a user