summaryrefslogtreecommitdiffstats
path: root/src/hex
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-07-24 22:47:21 +0200
committerCanop <cano.petrole@gmail.com>2020-07-24 22:47:21 +0200
commit4cf0e4652780d4ace522e23b8f4c0ced378dd528 (patch)
treebdcbdd649762d277b318b00370ff877aea2e5012 /src/hex
parent222fe524189898193af766ad2addbd9acccfa943 (diff)
display counts of lines in previewed files (matched/total)
Diffstat (limited to 'src/hex')
-rw-r--r--src/hex/hex_view.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/hex/hex_view.rs b/src/hex/hex_view.rs
index 79d5af9..f383329 100644
--- a/src/hex/hex_view.rs
+++ b/src/hex/hex_view.rs
@@ -168,13 +168,13 @@ impl HexView {
}
}
}
- cw.fill(&styles.default, LONG_SPACE)?;
- if is_thumb(y, scrollbar) {
- w.queue(SetForegroundColor(scrollbar_fg))?;
- w.queue(Print('▐'))?;
- } else {
- w.queue(Print(' '))?;
- }
+ }
+ cw.fill(&styles.default, LONG_SPACE)?;
+ if is_thumb(y, scrollbar) {
+ w.queue(SetForegroundColor(scrollbar_fg))?;
+ w.queue(Print('▐'))?;
+ } else {
+ w.queue(Print(' '))?;
}
}
Ok(())