Skip to content

Commit

Permalink
fix(complete): Suppress a useless space completion
Browse files Browse the repository at this point in the history
  • Loading branch information
sudotac committed Dec 5, 2023
1 parent b63cbb3 commit f24a9cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clap_complete/src/shells/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ fn option_details_for_path(cmd: &Command, path: &str) -> String {
let compopt = match o.get_value_hint() {
ValueHint::FilePath => Some("compopt -o filenames"),
ValueHint::DirPath => Some("compopt -o plusdirs"),
ValueHint::Other => Some("compopt -o nospace"),
_ => None,
};

Expand Down

0 comments on commit f24a9cc

Please sign in to comment.