# terminal: Fix issues with highlighted ranges of paths \(\#26695\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 18fcdf1d2c00d21ef6d1ccd8d771bd956cdb9687

Requested commit: 18fcdf1d2c00d21ef6d1ccd8d771bd956cdb9687

Commit: 18fcdf1d2c00d21ef6d1ccd8d771bd956cdb9687

Tree: 5836424e5bd07d34c47116b59c6edf44d6f8cd3e

Author: Ben Kunkle

Committer: GitHub

## Message

```
terminal: Fix issues with highlighted ranges of paths (#26695)

Fixes a few problems,

- Uses `Boundary::Grid` instead of `Boundary::Cursor` for highlighted
range adjustments.

This fixes quite a few wierd behaviors around highlighting paths that
had to be scrolled into view (i.e. were in the terminal history)
including the issue described in the release notes as well as a
regression caused by #26401 where the highlight range would span from
the start of the path to the cursor location in the shell prompt

- Strips all trailing `:`s from the paths, updating the highlighted
range accordingly.

This worked fine before and is just a visual improvement.


Release Notes:

- Fixed an issue where file paths in the terminal surrounded by `()` or
`[]` would not be highlighted properly
```

## Parents

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

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