src/bin/completion.rs: add history support

This commit is contained in:
Dietmar Maurer 2019-11-30 15:08:37 +01:00
parent 4b8573da65
commit 7afc1af7ab
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ fn main() -> Result<(), Error> {
let args = shellword_split(&line)?;
handle_command(helper.cmd_def(), "", args);
let _ = handle_command(helper.cmd_def(), "", args);
rl.add_history_entry(line);
}
Ok(())