• Christian Duerr's avatar
    Fix rendering of selections outside the viewport · 1887722e
    Christian Duerr authored
    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.
    1887722e
Name
Last commit
Last update
.github Loading commit data...
assets/osx/Alacritty.app/Contents Loading commit data...
copypasta Loading commit data...
docs Loading commit data...
font Loading commit data...
res Loading commit data...
scripts Loading commit data...
snap Loading commit data...
src Loading commit data...
tests Loading commit data...
.agignore Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
Cargo.lock Loading commit data...
Cargo.toml Loading commit data...
LICENSE-APACHE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
alacritty-completions.bash Loading commit data...
alacritty-completions.fish Loading commit data...
alacritty-completions.zsh Loading commit data...
alacritty.desktop Loading commit data...
alacritty.info Loading commit data...
alacritty.man Loading commit data...
alacritty.yml Loading commit data...
alacritty_macos.yml Loading commit data...
build.rs Loading commit data...