]> git.neil.brown.name Git - edlib.git/commit
linecount: fix need_recalc()
authorNeilBrown <neil@brown.name>
Sat, 3 Jun 2023 06:13:25 +0000 (16:13 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
commit5499cf4cf1075486f0ba80b9671270bde52eeecc
tree6f5ba1a4c711b7ff70f2c9e2998a1398e2eac19c
parentf1868686995a952aab72b26f546e5c482474d889
linecount: fix need_recalc()

I was testing the wrong thing - or freeing the wrong thing.

If a range is small - clear the first mark and discard the second.  Then
from the first to whatever comes next will be recalculated.

Signed-off-by: NeilBrown <neil@brown.name>
lib-linecount.c