Remove space from command name completion suggestion. ()

Although convenient, since the user doesn't have to type the space, it could be
a little surprising to users since they may think that was the only completion
in certain completions modes (for example, `cycle`).
This commit is contained in:
Jason Gedge 2020-09-04 23:15:20 -04:00 committed by GitHub
parent 32951f1161
commit c9c29f9e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ impl Completer {
.into_iter()
.filter(|v| v.starts_with(partial))
.map(|v| Suggestion {
replacement: format!("{} ", v),
replacement: v.clone(),
display: v,
})
.collect();