Skip to content

Keep the scroll when a re-sent patch says what the last one said - #831

Open
SimonCropp wants to merge 1 commit into
mainfrom
fix-resend-resets-scroll
Open

Keep the scroll when a re-sent patch says what the last one said#831
SimonCropp wants to merge 1 commit into
mainfrom
fix-resend-resets-scroll

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

EnqueueInline started the reader at the top for any arrival carrying the key of the
entry on screen, whether or not that entry changed. A continuous test runner sends
one every few seconds for as long as the test keeps failing, so reading anything
past the first screenful meant being thrown back to the top of it on every run.

InlineQueue.Fold already reports an identical patch as unchanged and Project hands
back the same entry, so the entry instance is the thing to compare. The attached
path has always worked this way - SyncKeepsTheScrollWhenNothingChanged pins it -
and this is the same rule on the path that owns the queue.

EnqueueInline started the reader at the top for any arrival carrying the key of the
entry on screen, whether or not that entry changed. A continuous test runner sends
one every few seconds for as long as the test keeps failing, so reading anything
past the first screenful meant being thrown back to the top of it on every run.

InlineQueue.Fold already reports an identical patch as unchanged and Project hands
back the same entry, so the entry instance is the thing to compare. The attached
path has always worked this way - SyncKeepsTheScrollWhenNothingChanged pins it -
and this is the same rule on the path that owns the queue.
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