fix space rendering for partial chunks
This commit is contained in:
@@ -188,6 +188,8 @@ mod hex {
|
||||
bytes: &[u8]
|
||||
) -> impl Iterator<Item=Span<'static>> {
|
||||
#[allow(unstable_name_collisions)]
|
||||
iter::once(self.render_large_space_before(address))
|
||||
.chain(
|
||||
bytes
|
||||
.iter()
|
||||
.copied()
|
||||
@@ -199,6 +201,7 @@ mod hex {
|
||||
.skip(1)
|
||||
.map(|address| self.render_space_before(address))
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
fn render_byte_at(
|
||||
|
||||
@@ -27,7 +27,6 @@ const LINES_OF_PADDING: usize = 5;
|
||||
const BYTES_OF_PADDING: usize = LINES_OF_PADDING * BYTES_PER_LINE;
|
||||
|
||||
// TODO:
|
||||
// - some way to inspect just one interpretation
|
||||
// - search
|
||||
// - ascii and bytes (`/` and `A-/`?)
|
||||
// - diffing
|
||||
|
||||
Reference in New Issue
Block a user