# pane: Always notify status bar items on Pane::Focused events \(\#10275\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f0d4d71e97f16e615c18561af4f4e061bcbdb58b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f0d4d71e97f16e615c18561af4f4e061bcbdb58b

Requested commit: f0d4d71e97f16e615c18561af4f4e061bcbdb58b

Commit: f0d4d71e97f16e615c18561af4f4e061bcbdb58b

Tree: 55277b8c955ae80a13ec9b477bb854cf9fb3a018

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
pane: Always notify status bar items on Pane::Focused events (#10275)

Due to peculiarities in handling of terminal panes (namely the fact that
they are not actually tracked by the Workspace::active_pane member), it
was possible to get into a state where status bar items "lost track" of
an active pane item; one way to reproduce it was to open a new terminal
via "workspace: new terminal" with a pane open in a central view; once a
new terminal is opened, the language selector and line number indicator
lose track of an active item. Focusing central view does nothing - it
will only go away after switching a tab in the central view.

To remedy this, we now always notify the status bar items of a pane
focus change, even if Workspace::active_pane points to the same pane.

Release Notes:

- Fixed status bar focus issues when spawning a terminal via `workspace:
new terminal` action.
```

## Parents

- [bcdae9fefaa93d1a8c26c089a1690a4f4a2213c4](https://git.cafe/gitcafe/zed/commit/bcdae9fefaa93d1a8c26c089a1690a4f4a2213c4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f0d4d71e97f16e615c18561af4f4e061bcbdb58b?format=markdown)
