aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 69d6b04..8914f4f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -377,9 +377,9 @@ impl Bk<'_> {
}
Bk {
+ line: min(args.line, chapters[args.chapter].lines.len().saturating_sub(rows as usize)),
chapters,
chapter: args.chapter,
- line: args.line,
mark: HashMap::new(),
cols,
rows: rows as usize,