Remove space from command name completion suggestion. (#2498)
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:
parent
32951f1161
commit
c9c29f9e4c
|
@ -27,7 +27,7 @@ impl Completer {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|v| v.starts_with(partial))
|
.filter(|v| v.starts_with(partial))
|
||||||
.map(|v| Suggestion {
|
.map(|v| Suggestion {
|
||||||
replacement: format!("{} ", v),
|
replacement: v.clone(),
|
||||||
display: v,
|
display: v,
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user