From d76699048de8057c25cca693af5ae471d2569696 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 14 Jul 2020 04:17:34 -0700 Subject: 0.4.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 1 + 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 "] 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; -- cgit v1.2.3