Reformatted autocomplete

This commit is contained in:
Justine Pelletreau
2023-02-03 16:04:52 +01:00
parent 28783a5d1b
commit 05d6a40efb
4 changed files with 318 additions and 73 deletions

View File

@ -248,8 +248,9 @@ pub mod shell {
if *&mycommand.len() == 0 {
continue;
}
//Search
let (res, list) = autocomplete(&mycommand);
let (res, list) = Search::build(&mycommand).unwrap().autocomplete();
write!(stdout, "\r\n{}\r\n", list);
mycommand.clear();
mycommand.push_str(&res);