From 7afc1af7ab66091408cc5a188dd70bd31c41b74a Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 30 Nov 2019 15:08:37 +0100 Subject: [PATCH] src/bin/completion.rs: add history support --- src/bin/completion.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/completion.rs b/src/bin/completion.rs index 15bd309b..6006ff72 100644 --- a/src/bin/completion.rs +++ b/src/bin/completion.rs @@ -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(())