# editor: Preserve font features for vim block cursor \(\#39474\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bc39ed2575f141cbbb9bbe2fe0c7decdc852d7f4

Requested commit: bc39ed2575f141cbbb9bbe2fe0c7decdc852d7f4

Commit: bc39ed2575f141cbbb9bbe2fe0c7decdc852d7f4

Tree: 73f18676703d24be18080961c651304401c1b3a5

Author: Ratazzi

Committer: GitHub

## Message

```
editor: Preserve font features for vim block cursor (#39474)

## Summary

Fixes an issue where font features (like ligatures) were not applied to
text under the vim block cursor. The cursor would inherit the font
family from the character at the cursor
position, but would use default font features instead of the editor's
configured font features.

## Changes

- Make the font mutable when rendering the vim block cursor
- Apply the editor's text style font features to the cursor font

This ensures that text under the block cursor renders with the same
visual appearance as the rest of the editor content.

Closes #39471

Release Notes:

- Fixed vim block cursor not respecting font features (like ligatures)
```

## Parents

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

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