# editor: Fix text manipulation on line mode selections \(\#37646\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b65fb0626491be66a26718ea43f29e7d89f74c9f

Requested commit: b65fb0626491be66a26718ea43f29e7d89f74c9f

Commit: b65fb0626491be66a26718ea43f29e7d89f74c9f

Tree: b520196db23bb86d1e2989cd2727b0ca79f9da71

Author: Dino

Committer: GitHub

## Message

```
editor: Fix text manipulation on line mode selections (#37646)

This commit updates the implementation for
`editor::Editor.manipulate_text` to use
`editor::selections_collection::SelectionsCollection.all_adjusted`
instead of `editor::selections_collection::SelectionsCollection.all`, as
the former takes into account the selection's `line_mode`, fixing the
issue where, if an user was in vim's visual line mode, running the
`editor: convert to upper case` command would not work as expected.

Closes #36953 

Release Notes:

- Fixed bug where using the editor's convert case commands while in
vim's Visual Line mode would not work as expected
```

## Parents

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

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