Skip to content

Commit

Permalink
Show context when opening file, too
Browse files Browse the repository at this point in the history
  • Loading branch information
John Baber-Lucero committed Feb 20, 2022
1 parent 66af0af commit 8480f28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "edhex"
version = "0.3.12"
version = "0.3.13"
authors = ["John Baber-Lucero <[email protected]>"]
license = "GPL-3.0"
description = "Hex editor that works vaguely like ed"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Usage
-----

edhex <filename>
echo '0,$' |edhex -q <filename>
echo '0,$p' |edhex -P <filename> |less -R

Differences from ed
-------------------
Expand Down
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8480f28

Please sign in to comment.