From: Harishankar Date: Sun, 31 May 2020 11:03:45 +0000 (+0530) Subject: Updated Readme.md file and bumped version number X-Git-Tag: 0.1.1^0 X-Git-Url: https://harishankar.org/repos/?a=commitdiff_plain;h=a6a5b2946a176681ca6c0621b041a8bc3335a926;p=evpf.git Updated Readme.md file and bumped version number Updated Readme.md and bumped the version number --- 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 {