fix: completion

This commit is contained in:
Janik von Rotz committed 2026-07-18 21:46:08 +02:00
1 parent eb75914131
commit b6fa6f73d1
1 file changed
-3
-3
View File
@@ -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