# Don't manipulate selections when syncing options if vim-mode is disabled · gitcafe/zed

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

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

Visibility: public

Requested revision: 492cc716d3eeed6aebb894f63e7a1449acb9f63e

Requested commit: 492cc716d3eeed6aebb894f63e7a1449acb9f63e

Commit: 492cc716d3eeed6aebb894f63e7a1449acb9f63e

Tree: cc1db1e1773d7ef31bccf8d30abb51bd0f6ec2d4

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Don't manipulate selections when syncing options if vim-mode is disabled

Previously, we were always mutating selections when `sync_editor_options`
was called. This seems to happen every time vim is enabled/disabled, but also
when vim is disabled and editors are simply focused/blurred.

This commit changes it so that we only manipulate selections when vim-mode is active.

```

## Parents

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

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