Skip to content

Commit f0ca6ea

Browse files
fix(completions): don't wrap completion item help in parenthesis
Fish shell automatically wraps the help text in parenthesis, so this wil result in them being applied twice.
1 parent 28163c0 commit f0ca6ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ fn get_feature_candidates() -> CargoResult<Vec<clap_complete::CompletionCandidat
12181218
feature_candidates.push(
12191219
clap_complete::CompletionCandidate::new(feature_name)
12201220
.display_order(Some(order))
1221-
.help(Some(format!("(from {})", package_name).into())),
1221+
.help(Some(format!("from {}", package_name).into())),
12221222
);
12231223
}
12241224
}
@@ -1243,7 +1243,7 @@ fn get_crate_candidates(kind: TargetKind) -> CargoResult<Vec<clap_complete::Comp
12431243
};
12441244
clap_complete::CompletionCandidate::new(target.name())
12451245
.display_order(Some(order))
1246-
.help(Some(format!("(from {})", pkg_name).into()))
1246+
.help(Some(format!("from {}", pkg_name).into()))
12471247
})
12481248
.collect::<Vec<_>>();
12491249

0 commit comments

Comments
 (0)