Only requote path arguments.
@@ -76,16 +76,17 @@ impl NuCompleter {
"cd" => select_directory_suggestions(completed_paths),
_ => completed_paths,
}
- }
-
- LocationType::Variable => Vec::new(),
- }
.into_iter()
- })
.map(|suggestion| Suggestion {
replacement: requote(suggestion.replacement),
display: suggestion.display,
})
+ .collect()
+ }
+
+ LocationType::Variable => Vec::new(),
+ }
+ })
.collect();
(pos, suggestions)
