From a6a5b2946a176681ca6c0621b041a8bc3335a926 Mon Sep 17 00:00:00 2001 From: Harishankar Date: Sun, 31 May 2020 16:33:45 +0530 Subject: [PATCH] Updated Readme.md file and bumped version number Updated Readme.md and bumped the version number --- Cargo.toml | 2 +- Readme.md | 4 ++-- src/main.rs | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2e0cb3d..817272d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evpf" -version = "0.1.0" +version = "0.1.1" authors = ["Harishankar "] edition = "2018" diff --git a/Readme.md b/Readme.md index 69a2db1..3551e28 100644 --- a/Readme.md +++ b/Readme.md @@ -15,8 +15,8 @@ line mode, `*` has to be escaped using `\*` to work properly.) ## Interactive mode Interactive mode displays a prompt where expressions can be evaluated by -typing into the prompt (line editing and session-history supported by -`rustyline`. +typing into the prompt (line editing and command history support using +`rustyline`). evpf> diff --git a/src/main.rs b/src/main.rs index 8e54265..c5dd52e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -195,7 +195,10 @@ fn run_interactive_mode (match_num : ®ex::Regex) { let mut expr = String::new (); let mut rl = Editor::<()>::new (); + + // load the history file let hist_file = get_history_file (); + // if unable to load the history file, display the appropriate error if hist_file.is_err () { eprintln! ("{}", &hist_file.unwrap_err()); } else { -- 2.20.1