aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/main.rs1
3 files changed, 3 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index f69d53a..4312da7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,7 +61,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "bk"
-version = "0.4.1"
+version = "0.4.2"
dependencies = [
"anyhow",
"argh",
diff --git a/Cargo.toml b/Cargo.toml
index 7bc946b..7813504 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "bk"
-version = "0.4.1"
+version = "0.4.2"
authors = ["James Campos <james.r.campos@gmail.com>"]
edition = "2018"
license = "MIT"
diff --git a/src/main.rs b/src/main.rs
index e1b2e13..1b7269f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -304,6 +304,7 @@ impl View for Page {
let c = bk.chap();
let line_end = min(bk.line + bk.rows, c.lines.len());
+ // XXX does not pick up combined bold italic state if both attributes start above screen
let attrs = {
let text_start = c.lines[bk.line].0;
let text_end = c.lines[line_end - 1].1;