diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-10-20 22:30:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 22:30:59 +0000 |
commit | 4380d0864b1098909bdcfec132b866c34924517e (patch) | |
tree | f3c97e5897d1d8007f7fb651bfa2bff814bbc910 /src/input.rs | |
parent | 34ada9295d0d3801f305a9818de38ebaeb784f63 (diff) | |
download | alacritty-4380d0864b1098909bdcfec132b866c34924517e.tar.gz alacritty-4380d0864b1098909bdcfec132b866c34924517e.zip |
Fix rotation of selection below 0
Whenever the viewport is scrolled, the selection is rotated to make sure
that it moves with the viewport. However this did not correctly handle
the underflow that happens when the selection goes below 0.
This resolves that problem for the selection by moving the internal line
representation to an isize, thus correctly keeping track of the
selection start/end points even when they have a negative index. Once
the selection is converted to a span, the lines are clamped to the
visible region.
This fixes #1640 and fixes #1643.
Diffstat (limited to 'src/input.rs')
0 files changed, 0 insertions, 0 deletions