Skip to content

Update details pane on focus only if content changes#193

Merged
dotdash merged 2 commits into
Cretezy:mainfrom
Edgpaez:update-details-pane
Jan 13, 2026
Merged

Update details pane on focus only if content changes#193
dotdash merged 2 commits into
Cretezy:mainfrom
Edgpaez:update-details-pane

Conversation

@Edgpaez

@Edgpaez Edgpaez commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

This is a continuation of #189
As explained there, when doing a push or a fetch that didn't change the change_id, the pane view (that shows the jj show view in the right) was not refreshed. This meant that even though the push finished you wouldn't see the bookmark from the remote being added to the change.

This PR makes sure sync_head_output always calls refresh_head_output.
This PR also addresses @dotdash's feedback and only updates the details pane if the contents changed. This way you don't lose the scroll position unless the output of jj show is now different.

@Edgpaez Edgpaez changed the title Update details pane Update details pane on focus only if content changes Jan 10, 2026
Comment thread src/ui/log_tab.rs Outdated
@Edgpaez
Edgpaez force-pushed the update-details-pane branch from ade6ba2 to fa8c503 Compare January 13, 2026 16:36
@dotdash
dotdash merged commit cc4053c into Cretezy:main Jan 13, 2026
8 of 10 checks passed
@Edgpaez
Edgpaez deleted the update-details-pane branch January 13, 2026 17:23
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.

3 participants