Skip to content

chore: use goimports instead of gofmt in make fmt #28

Merged
axelgar merged 2 commits into
mainfrom
fix/diff-scrolling-not-working
Mar 11, 2026
Merged

chore: use goimports instead of gofmt in make fmt #28
axelgar merged 2 commits into
mainfrom
fix/diff-scrolling-not-working

Conversation

@axelgar

@axelgar axelgar commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Changes - chore: use goimports instead of gofm

Test User and others added 2 commits March 11, 2026 10:54
The down/j handler was incrementing diffScrollOffset without an upper
bound. View() clamped it for rendering (value receiver, local copy only),
so the stored offset could grow past maxScroll. This made j appear stuck
at the bottom and k appear unresponsive until enough presses unwound the
excess offset. Adds the same maxScroll calculation in Update() and tests
for all scroll edge cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@axelgar axelgar merged commit fbc499d into main Mar 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant