Skip to content

Commit 6328860

Browse files
[issue#6161] Fix cargo commands list
1 parent 451f97e commit 6328860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/cargo.bashcomp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ _cargo()
120120
} &&
121121
complete -F _cargo cargo
122122

123-
__cargo_commands=$(cargo --list 2>/dev/null | tail -n +2)
123+
__cargo_commands=$(cargo --list 2>/dev/null | tail -n +2 | sed -E -e "s/^\s+//g" | cut -d" " -f1)
124124

125125
_locate_manifest(){
126126
local manifest=`cargo locate-project 2>/dev/null`

0 commit comments

Comments
 (0)