# In \`add_option_view\`, avoid bumping view's ref counts if view is None · gitcafe/zed

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

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

Visibility: public

Requested revision: 0e93bc41ddd62c8ba210bf7ec4c2e624d5268933

Requested commit: 0e93bc41ddd62c8ba210bf7ec4c2e624d5268933

Commit: 0e93bc41ddd62c8ba210bf7ec4c2e624d5268933

Tree: 3b02442a52deb3984a686057ed828f30067d0f73

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
In `add_option_view`, avoid bumping view's ref counts if view is None

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

```

## Parents

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

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