From c9c29f9e4c8784538972b82f7f98670caf356379 Mon Sep 17 00:00:00 2001 From: Jason Gedge Date: Fri, 4 Sep 2020 23:15:20 -0400 Subject: [PATCH] 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`). --- crates/nu-cli/src/completion/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cli/src/completion/command.rs b/crates/nu-cli/src/completion/command.rs index 6562e4de2a..b2f95426be 100644 --- a/crates/nu-cli/src/completion/command.rs +++ b/crates/nu-cli/src/completion/command.rs @@ -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();