# Fix cursor blinking not working \(\#13130\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bedf57db8941cfc893761ce7d44212b9d1175602

Requested commit: bedf57db8941cfc893761ce7d44212b9d1175602

Commit: bedf57db8941cfc893761ce7d44212b9d1175602

Tree: 25a93a4273e54d4b0e99b31df01767bc0ec0a50b

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix cursor blinking not working (#13130)

This was a bug in https://github.com/zed-industries/zed/pull/12990, due
to the new focus restoration logic introduced with the editor.

With this pull request, the editor will only restore focus when a
descendant lost it. If the focus was lost by the editor itself, there's
no need to restore it and we can instead proceed with starting the
cursor blink.

Release Notes:

- N/A
```

## Parents

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

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