Skip to content

Commit 33dc624

Browse files
committed
fix(_command_offset): fix completions splitted by spaces
1 parent 08450fa commit 33dc624

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bash_completion

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,9 @@ _comp_command_offset()
22972297
else
22982298
cspec=${cspec#complete}
22992299
cspec=${cspec%%@("$compcmd"|"'${compcmd//\'/\'\\\'\'}'")}
2300-
COMPREPLY=($(eval compgen "$cspec" -- '$cur'))
2300+
local result=$(eval compgen "$cspec" -- '$cur')
2301+
local IFS=$'\n'
2302+
COMPREPLY=($result)
23012303
fi
23022304
break
23032305
done

0 commit comments

Comments
 (0)