diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-09-28 22:07:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 22:07:24 +0000 |
commit | 1887722ef5b6ac1c1f0e4e4f62cbb02b609c1d4b (patch) | |
tree | 5c4e806af9775bd7b6a8b56c26e7e01b38077311 /CHANGELOG.md | |
parent | 88076938ed582e3aa8ef8752c6a7ec8948603c69 (diff) | |
download | alacritty-1887722ef5b6ac1c1f0e4e4f62cbb02b609c1d4b.tar.gz alacritty-1887722ef5b6ac1c1f0e4e4f62cbb02b609c1d4b.zip |
Fix rendering of selections outside the viewport
When rendering selections with both start and end outside of the visible
area, Alacritty would assume that both start and end are either above or
below the viewport and not render the selection at all.
To fix this the `buffer_line_to_visible` method now returns a
`ViewportPosition` instead of an `Option<Line>`, this allows giving more
feedback about where outside of the visible region the line is using the
`ViewportPosition::Above` and `ViewportPosition::Below` variants.
Using these newly introduced variants, a selection spanning the whole
screen is now rendered if the selection should go from above the visible
area to below it.
This fixes #1557.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a228ad49..b6283e41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Windows started as unfocused now show the hollow cursor if the setting is enabled - Empty lines in selections are now properly copied to the clipboard - Selection start point lagging behind initial cursor position +- Rendering of selections which start above the visible area and end below it ### Deprecated |