From 7c1fc95f93653f292a8f7c477e5a1a6797536f01 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Tue, 14 Jan 2020 20:09:34 -0800 Subject: [PATCH] Properly add lines to the history for readline in the ebc --- .gitignore | 1 + eventbus/src/cli/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1d03494..7532903 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules/ .cargo/ build/ +.otto-ebc-history diff --git a/eventbus/src/cli/main.rs b/eventbus/src/cli/main.rs index 5862fe6..4926ff3 100644 --- a/eventbus/src/cli/main.rs +++ b/eventbus/src/cli/main.rs @@ -41,6 +41,7 @@ fn main() { } } } else { + rl.add_history_entry(line.as_str()); if line == "quit" { return; }