Skip to content

git_panel: Fix FocusChanges does nothing with no entries#42553

Merged
cole-miller merged 1 commit intozed-industries:mainfrom
xipeng-jin:issue/git-focus-changes-31155
Nov 14, 2025
Merged

git_panel: Fix FocusChanges does nothing with no entries#42553
cole-miller merged 1 commit intozed-industries:mainfrom
xipeng-jin:issue/git-focus-changes-31155

Conversation

@xipeng-jin
Copy link
Contributor

Closes #31155

Release Notes:

  • Ensure git_panel::FocusChanges bypasses the panel’s Focusable logic and directly focuses the ChangesList handle so the command works even when the repository has no entries.
  • Keep the Focusable behavior from the commit 45b126a (which routes empty panels to the commit editor) by handling this special-case action rather than regressing the default focus experience.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 12, 2025
@maxdeviant maxdeviant changed the title git_panel: fix FocusChanges do nothing when no entries git_panel: Fix FocusChanges does nothing with no entries Nov 12, 2025
@cole-miller
Copy link
Member

Thanks!

@cole-miller cole-miller merged commit 28a0b82 into zed-industries:main Nov 14, 2025
25 checks passed
@JosephTLyons JosephTLyons moved this to 🚢 Shipped by Community in Git board Nov 19, 2025
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
…ies#42553)

Closes zed-industries#31155

Release Notes:

- Ensure `git_panel::FocusChanges` bypasses the panel’s `Focusable`
logic and directly focuses the `ChangesList` handle so the command works
even when the repository has no entries.
- Keep the `Focusable` behavior from the commit 45b126a (which routes
empty panels to the commit editor) by handling this special-case action
rather than regressing the default focus experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

Status: 🚢 Shipped by Community

Development

Successfully merging this pull request may close these issues.

Git: FocusChanges do nothing

2 participants