# Windows: Fix direct_write crash when clicking an empty line \(\#11117\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c8a496ec4b3c1a6cbbf087af360d962a2846e83e

Requested commit: c8a496ec4b3c1a6cbbf087af360d962a2846e83e

Commit: c8a496ec4b3c1a6cbbf087af360d962a2846e83e

Tree: 6060122215958c53d95df9cf185262ccf714c6e4

Author: CharlesChen0823

Committer: GitHub

## Message

```
Windows: Fix direct_write crash when clicking an empty line (#11117)

Windows platform direct_write using `LineLayout::default` indicates
`font_size` will be 0. Zed crashed when click empty line.

Release Notes:
- N/A
```

## Parents

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

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