diff --git a/Cargo.lock b/Cargo.lock index 60ed27c..0e3401d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,7 +52,7 @@ dependencies = [ [[package]] name = "edhex" -version = "0.3.12" +version = "0.3.13" dependencies = [ "ansi_term", "clap", @@ -62,7 +62,7 @@ dependencies = [ [[package]] name = "edhex_core" -version = "0.6.0" +version = "0.6.1" dependencies = [ "ansi_term", "regex", diff --git a/Cargo.toml b/Cargo.toml index c4f1ffe..4b3fa03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "edhex" -version = "0.3.12" +version = "0.3.13" authors = ["John Baber-Lucero "] license = "GPL-3.0" description = "Hex editor that works vaguely like ed" @@ -11,6 +11,6 @@ edition = "2018" [dependencies] ansi_term = "0.12.1" -edhex_core = { path = "../edhex_core", version = "0.6.0" } +edhex_core = { path = "../edhex_core", version = "0.6.1" } regex = "1.4.5" clap = "2.27.0" diff --git a/README.md b/README.md index 89a412c..5726656 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Usage ----- edhex - echo '0,$' |edhex -q + echo '0,$p' |edhex -P |less -R Differences from ed ------------------- diff --git a/TODO.md b/TODO.md index 741a978..c425721 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,5 @@ - BUG - ? past the beginning of the file causes a panic - - Show context even on first print when opening file - Handle things like "$-10" - docs.rs documentation diff --git a/src/lib.rs b/src/lib.rs index 28e509e..2f2b6b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -823,7 +823,7 @@ pub fn actual_runtime(filename:&str, pipe_mode:bool, color:bool, readonly:bool, println!("{}", Color::Yellow.paint("h for help")); println!("\n{}", state); println!(); - state.print_bytes_sans_context(state.range(), false); + state.print_bytes(); } // TODO Below here should be a function called main_loop()