# Fix scroll position restoration \(\#42088\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 149eedb73d8b9339e90a11df93f142c46fb98b9d

Requested commit: 149eedb73d8b9339e90a11df93f142c46fb98b9d

Commit: 149eedb73d8b9339e90a11df93f142c46fb98b9d

Tree: f725afdf0805b1d73f7f0f5aa1d9ee4a094042e0

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix scroll position restoration (#42088)

Follow-up of https://github.com/zed-industries/zed/pull/42035
Scroll position needs to be stored immediately, otherwise editor close
may not register that.

Release Notes:

- N/A
```

## Parents

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

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