Skip to content

Do not step over the change block just above the viewport - #829

Merged
SimonCropp merged 1 commit into
mainfrom
fix-previous-change
Aug 22, 2026
Merged

Do not step over the change block just above the viewport#829
SimonCropp merged 1 commit into
mainfrom
fix-previous-change

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

PreviousChange started one row above the viewport and then stepped off any block it
found there. That row is not in the viewport, so a block ending on it is one the
reader has not been taken to - and it was skipped for the block before it. From row
17 with a change at 16, previous went to 2. From row 3 with a change at 2 it went
nowhere at all, there being nothing before it to fall through to, so the first
block in a file could not be reached from the row below it.

It starts at the top row of the viewport now, the row NextChange starts at, and
steps off a block only when that row is itself a change - which is the case
stepping off was for.

PreviousChange started one row above the viewport and then stepped off any block it
found there. That row is not in the viewport, so a block ending on it is one the
reader has not been taken to - and it was skipped for the block before it. From row
17 with a change at 16, previous went to 2. From row 3 with a change at 2 it went
nowhere at all, there being nothing before it to fall through to, so the first
block in a file could not be reached from the row below it.

It starts at the top row of the viewport now, the row NextChange starts at, and
steps off a block only when that row is itself a change - which is the case
stepping off was for.
@SimonCropp
SimonCropp merged commit 5e4bd31 into main Aug 22, 2026
9 checks passed
@SimonCropp
SimonCropp deleted the fix-previous-change branch August 22, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant