Skip to content

Fix cycling pagers when main view is focused#5639

Merged
stefanhaller merged 2 commits into
masterfrom
fix-cycling-pagers-in-focused-main-view
May 26, 2026
Merged

Fix cycling pagers when main view is focused#5639
stefanhaller merged 2 commits into
masterfrom
fix-cycling-pagers-in-focused-main-view

Conversation

@stefanhaller
Copy link
Copy Markdown
Collaborator

Fixes #5638.

The call to HandleFocus worked fine too, but it was doing too much; all we
really need here is rerender the main view.
The previous logic only re-rendered the main view when the side panel itself was
focused. When the user pressed `0` to focus the main view, the
Normal/NormalSecondary context becomes Current and the equality check failed, so
cycling pagers had no visible effect. Mirror the pattern from postRefreshUpdate:
when the main view is focused, call HandleRenderToMain on the side panel below
it on the stack (which CurrentSide already returns).
@stefanhaller stefanhaller added the bug Something isn't working label May 26, 2026
@stefanhaller stefanhaller enabled auto-merge May 26, 2026 06:02
@stefanhaller stefanhaller merged commit 822807c into master May 26, 2026
14 checks passed
@stefanhaller stefanhaller deleted the fix-cycling-pagers-in-focused-main-view branch May 26, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switching pager when not focused on commits tab doesn't work

1 participant