# Fix theme selector resetting the buffer size \(\#25425\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 147f407b7a2382c58b172154a21c4f1ec3d17b08

Requested commit: 147f407b7a2382c58b172154a21c4f1ec3d17b08

Commit: 147f407b7a2382c58b172154a21c4f1ec3d17b08

Tree: 3366344e355a32224cd9192ffea59197a6c875e5

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix theme selector resetting the buffer size (#25425)

Closes https://github.com/zed-industries/zed/issues/25413

As the issue points out well, themes do not need to alter any in-memory
state on load: that is done via settings file load.
Originally, it was introduced in
https://github.com/zed-industries/zed/pull/4064 and
https://github.com/zed-industries/zed/pull/24857 had restored that
behavior, which seems wrong to do.

Apart from removing that part, removes unnecessary methods and
emphasizes that in-memory state is the Buffer/UI size — no need to add
`Adjusted` there as the settings file presence is already enough.

Release Notes:

- Fixed theme selector resetting the buffer size
```

## Parents

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

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