From: Simon Tatham Date: Sun, 31 Dec 2023 15:06:29 +0000 (+0000) Subject: Braino: < for <=. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=ae98a45b4b01682ea35b46433a75c6fc20a13475;p=mastodonochrome.git Braino: < for <=. Would have caused an unnecessary coarsen_pos() if we were sitting on the first _non-header_ item in a file at the point when it failed to extend backwards. --- diff --git a/src/file.rs b/src/file.rs index da42aaf..8727c55 100644 --- a/src/file.rs +++ b/src/file.rs @@ -455,7 +455,7 @@ impl ActivityState for FeedFile { // Can't extend this any further into the past // FIXME: this is not tested yet self.contents.extender = None; - if self.pos.item() <= self.contents.origin { + if self.pos.item() < self.contents.origin { self.coarsen_pos(); if self.pos.item() < self.contents.first_index()