From 82b332a546b0946cde8975b4ed5b5c3b702316c1 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 16 Jun 2020 14:03:02 -0700 Subject: validate saved line --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3