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 /src/grid/storage.rs | |
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 'src/grid/storage.rs')
0 files changed, 0 insertions, 0 deletions