hyperlink truncated at end of row isn't closed correctly
- Dominant language
- Go
- Stars
- 438
- Forks
- 94
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 6
Description
When using a template with a hyperlink at the end, if the the line is truncated the link its closed correctly.
```bash
gh api notifications --template '{{tablerow "Reason" "When" "Repo" "Title" -}}
{{ range . -}}
{{tablerow (.reason | autocolor "cyan") (timeago .updated_at) (.repository.full_name) (hyperlink "https://github.com/notifications" (.subject.title | autocolor "yellow")) -}}
{{end -}}'
```
Below output is from redirecting to a file, and using `sed -n l0 file`
With a the available space in terminal window the link is closed correctly:
```text
\033]8;;https://github.com/notifications\033\\build(deps): bump pre-commit helm-docs to v1.13.0\033]8;;\033\\$
```
When the terminal is too small, the link isn't closed
```text
\033]8;;https://github.com/notifications\033\\build(deps):...$
```
Therefore turning everything after that in terminal too a link, running the following clears it `printf '\e]8;;'`
Contributor guide
Assessment
This issue has not been assessed yet.