# editor: Fix move line up panic when selection is at end of line next to fold marker \(\#34982\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b63d820be23762f10313bce17e9c98cbba7ab9dd

Requested commit: b63d820be23762f10313bce17e9c98cbba7ab9dd

Commit: b63d820be23762f10313bce17e9c98cbba7ab9dd

Tree: 78a5b729e9430b0f6292951a0d3728186e84ef6b

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix move line up panic when selection is at end of line next to fold marker  (#34982)

Closes #34826

In move line up method, make use of `prev_line_boundary` which accounts
for fold map, etc., for selection start row so that we don't incorrectly
calculate row range to move up.

Release Notes:

- Fixed an issue where `editor: move line up` action sometimes crashed
if the cursor was at the end of a line beside a fold marker.
```

## Parents

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

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