# Don't trigger autosave on focus change in modals \(\#45166\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 25e1e2ecdd131291dcb791d5841ed012cd219040

Requested commit: 25e1e2ecdd131291dcb791d5841ed012cd219040

Commit: 25e1e2ecdd131291dcb791d5841ed012cd219040

Tree: a1fdeba6d33fc55821e315ead3b46589fcefaa1f

Author: Ben Kunkle

Committer: GitHub

## Message

```
Don't trigger autosave on focus change in modals (#45166)

Closes #28732

Release Notes:

- Opening the command palette or other modals no longer triggers
auto-save with the `{ "autosave": "on_focus_change" }` setting. This
reduces the chance of unwanted format changes when executing actions,
and fixes a race condition with `:w` in Vim mode
```

## Parents

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

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