# tasks: Fix $ZED_SELECTED_TEXT ignoring line_mode \(\#12120\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1771eded548dd5d9143dd6d0b53d7f76174dca65

Requested commit: 1771eded548dd5d9143dd6d0b53d7f76174dca65

Commit: 1771eded548dd5d9143dd6d0b53d7f76174dca65

Tree: 4f51b5ddc745797af96cc5e5fb565432d1cac0a0

Author: Thorsten Ball

Committer: GitHub

## Message

```
tasks: Fix $ZED_SELECTED_TEXT ignoring line_mode (#12120)

When you press `V` to go into visual-line mode in Vim,
`selections.line_mode` is true and the selection contains _lines_.

But `$ZED_SELECTED_TEXT` always contained just the cursor location or
any non-line-mode selection that was previously made.

Release Notes:

- Fixed `$ZED_SELECTED_TEXT` variable in Tasks ignoring whether
visual-line-mode in Vim was used.
```

## Parents

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

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