# editor: Fix panics in \`CursorPosition::update_position\` \(\#41237\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ae3abf50d85f3480268dfa49b608e03d5dbf77bc

Requested commit: ae3abf50d85f3480268dfa49b608e03d5dbf77bc

Commit: ae3abf50d85f3480268dfa49b608e03d5dbf77bc

Tree: 2a3f57fcf4737e3a52f85e5bb183678c3c574f7a

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Fix panics in `CursorPosition::update_position` (#41237)

Fixes a regression introduced in
https://github.com/zed-industries/zed/pull/39857. As for the exact
reason this causes this issue I am not yet sure will investigate (as per
the todos in code)

Fixes ZED-23R

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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