# vim: Fix cursor shape after deactivation \(\#42834\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 769464762a0233f0a60aa27ec899021588085e43

Requested commit: 769464762a0233f0a60aa27ec899021588085e43

Commit: 769464762a0233f0a60aa27ec899021588085e43

Tree: 78691af76dd6f455d7eb22e0cc3c5dcbedb5750f

Author: Lennart

Committer: GitHub

## Message

```
vim: Fix cursor shape after deactivation (#42834)

Update the `Vim.deactivate` method to ensure that the cursor shape is
reset to the one available in the user's settings, in the `cursor_shape`
setting, instead of simply defaulting to `CursorShape::Bar`.

In order to test this behavior, the `Editor.cursor_shape` method was
also introduced.

Release Notes:

- Fixed the cursor shape reset in vim mode deactivation, ensuring that
the user's `cursor_shape` setting is used

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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