Only requote path arguments. (#2471)

This commit is contained in:
Jason Gedge 2020-08-31 20:11:39 -04:00 committed by GitHub
parent dd4351e2b7
commit 60ce497edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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