• Christian Duerr's avatar
    Fix substraction underflow with IL sequence · 43882ade
    Christian Duerr authored
    The IL escape sequence (CSI Ps L) allows inserting blank, uninitialized
    lines. `Ps` is a placeholder for the number of lines that should be
    inserted. Before this change Alacritty would crash when a large number
    of lines was passed as `Ps` parameter.
    
    The issue was caused whenever the current line of the cursor plus the
    lines that should be inserted would leave the bottom of the terminal,
    since this makes indexing impossible.
    
    This patch makes sure that the biggest amount of lines inserted does
    never exceed the end of the visible region minus the current line of the
    curser, which fixes the underflow issue.
    
    This fixes #1515.
    43882ade
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...
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...