Skip to content
Snippets Groups Projects
Commit ca053046 authored by AdminXVII's avatar AdminXVII Committed by Michael Aaron Murphy
Browse files

Use correct conversion mechanism

parent e81b3aea
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ pub(crate) fn readln(shell: &mut Shell) -> Option<String> { ...@@ -51,7 +51,7 @@ pub(crate) fn readln(shell: &mut Shell) -> Option<String> {
.map(|&s| s.to_string()) .map(|&s| s.to_string())
// Add the history list to the completer's definitions. // Add the history list to the completer's definitions.
// Map each underlying `liner::Buffer` into a `String`. // Map each underlying `liner::Buffer` into a `String`.
.chain(editor.context().history.buffers.iter().map(|x| x.into())) .chain(editor.context().history.buffers.iter().map(|x| x.to_string()))
// Add the aliases to the completer's definitions. // Add the aliases to the completer's definitions.
.chain(vars.aliases().map(|(key, _)| key.to_string())) .chain(vars.aliases().map(|(key, _)| key.to_string()))
// Add the list of available functions to the completer's // Add the list of available functions to the completer's
......
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