mirror of
https://github.com/nushell/nushell.git
synced 2025-01-23 06:39:17 +01:00
Only requote path arguments. (#2471)
This commit is contained in:
parent
dd4351e2b7
commit
60ce497edc
@ -76,15 +76,16 @@ impl NuCompleter {
|
|||||||
"cd" => select_directory_suggestions(completed_paths),
|
"cd" => select_directory_suggestions(completed_paths),
|
||||||
_ => completed_paths,
|
_ => completed_paths,
|
||||||
}
|
}
|
||||||
|
.into_iter()
|
||||||
|
.map(|suggestion| Suggestion {
|
||||||
|
replacement: requote(suggestion.replacement),
|
||||||
|
display: suggestion.display,
|
||||||
|
})
|
||||||
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
LocationType::Variable => Vec::new(),
|
LocationType::Variable => Vec::new(),
|
||||||
}
|
}
|
||||||
.into_iter()
|
|
||||||
})
|
|
||||||
.map(|suggestion| Suggestion {
|
|
||||||
replacement: requote(suggestion.replacement),
|
|
||||||
display: suggestion.display,
|
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user