# termina: Fix text selection for first line scrolls up \(\#26842\) · gitcafe/zed

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

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

Visibility: public

Requested revision: adbde210fd0cbdadc7b3b2e8ed2ccea991331ba5

Requested commit: adbde210fd0cbdadc7b3b2e8ed2ccea991331ba5

Commit: adbde210fd0cbdadc7b3b2e8ed2ccea991331ba5

Tree: d36bc210019d62089975340b4f3a9546767dd4cd

Author: Smit Barmase

Committer: GitHub

## Message

```
termina: Fix text selection for first line scrolls up (#26842)

Closes #21626
 
Now scroll will only happen when cursor goes beyond the bounds of
terminal.
 
 Before:
 


https://github.com/user-attachments/assets/9ac48e80-d0e0-44c9-87ad-14ed748de78d


 After:


https://github.com/user-attachments/assets/c697c1fc-a6d2-4b9a-aad4-5b0c79837c2a
 
Release Notes:

- Fixed an issue where selecting the first line in the terminal would
cause it to scroll.
```

## Parents

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

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