diff --git a/Cargo.lock b/Cargo.lock index 9939384..c67612b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,7 +160,7 @@ dependencies = [ [[package]] name = "rustyline" version = "1.0.0" -source = "git+https://github.com/klemens/rustyline.git?branch=2i-emulator#291927c2380226809dcd3a84acf7800d2e136620" +source = "git+https://github.com/klemens/rustyline.git?branch=2i-emulator#2e74e40c9e9ad2ffbabc519d8e5af89c88a7c3e7" dependencies = [ "cmdline-parser 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "encode_unicode 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/cli/main.rs b/src/cli/main.rs index 778e4cd..d324c07 100644 --- a/src/cli/main.rs +++ b/src/cli/main.rs @@ -54,7 +54,7 @@ fn _main() -> Result<(), i32> { // Add all non-empty inputs to the history if ! line.is_empty() { - line_reader.add_history_entry(line.as_ref()); + line_reader.add_history_entry(line); } if line.is_empty() {