Skip to content
Snippets Groups Projects
Commit 62d78814 authored by Steven Stanfield's avatar Steven Stanfield
Browse files

Forgot the format.

parent 35584dae
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,9 @@ impl<'a, 'b> Completer for IonFileCompleter<'a, 'b> { ...@@ -198,7 +198,9 @@ impl<'a, 'b> Completer for IonFileCompleter<'a, 'b> {
let completions = filename_completion(&expanded, &self.path); let completions = filename_completion(&expanded, &self.path);
if expanded == start { if expanded == start {
return if self.for_command { return if self.for_command {
completions.map(|s| s.rsplit('/').next().map(|s| s.to_string()).unwrap_or(s)).collect() completions
.map(|s| s.rsplit('/').next().map(|s| s.to_string()).unwrap_or(s))
.collect()
} else { } else {
completions.collect() completions.collect()
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment