mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
3 files changed
+4
-3
No files matched your search
@@ -76,7 +76,7 @@ jobs:
|
||||
- { target: i686-pc-windows-msvc , os: windows-2025 }
|
||||
- { target: i686-unknown-linux-gnu , os: ubuntu-24.04, use-cross: true }
|
||||
- { target: i686-unknown-linux-musl , os: ubuntu-24.04, use-cross: true }
|
||||
- { target: x86_64-apple-darwin , os: macos-13 }
|
||||
- { target: x86_64-apple-darwin , os: macos-15-intel }
|
||||
- { target: aarch64-apple-darwin , os: macos-15 }
|
||||
# Was causing CI failures unrelated to app logic
|
||||
# - { target: x86_64-pc-windows-gnu , os: windows-2019 }
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[package]
|
||||
authors = ["David Peter <mail@david-peter.de>"]
|
||||
categories = ["command-line-utilities"]
|
||||
keywords = ["hex", "viewer"]
|
||||
description = "A command-line hex viewer"
|
||||
homepage = "https://github.com/sharkdp/hexyl"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
+2
-2
@@ -601,7 +601,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
||||
if self.show_color {
|
||||
self.writer.write_all(COLOR_RESET.as_bytes())?;
|
||||
}
|
||||
} else if i % (self.group_size as usize) == 0 {
|
||||
} else if i.is_multiple_of(self.group_size as usize) {
|
||||
self.writer.write_all(b" ")?;
|
||||
}
|
||||
for _ in 0..self.base_digits {
|
||||
@@ -610,7 +610,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
||||
}
|
||||
Squeezer::Delete => self.writer.write_all(b" ")?,
|
||||
Squeezer::Ignore | Squeezer::Disabled => {
|
||||
if i % (self.group_size as usize) == 0 {
|
||||
if i.is_multiple_of(self.group_size as usize) {
|
||||
self.writer.write_all(b" ")?;
|
||||
}
|
||||
if self.show_color && self.curr_color != Some(Byte(b).color(self.color_scheme)) {
|
||||
|
||||
Reference in new issue
Block a user