diff options
author | James Campos <james.r.campos@gmail.com> | 2020-06-16 14:03:02 -0700 |
---|---|---|
committer | James Campos <james.r.campos@gmail.com> | 2020-06-16 14:03:02 -0700 |
commit | 82b332a546b0946cde8975b4ed5b5c3b702316c1 (patch) | |
tree | d67458e8778c1ee3ef55da2535cefee80b423633 /src | |
parent | 7317267dd380cf521286d44ebdf939c510aa7c85 (diff) | |
download | bk-82b332a546b0946cde8975b4ed5b5c3b702316c1.tar.gz |
validate saved line
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
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, |