mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Fix buggy selection when scrolling down
When scrolling down with a selection on screen the first line was not properly selected. This has been fixed by making sure the selection always starts in the first cell when it is only partially visible.
This commit is contained in:
parent
6173603677
commit
c1acbe47e6
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ impl<'a> RenderableCellsIter<'a> {
|
||||||
Some((start_line, loc.start.col, end_line, loc.end.col))
|
Some((start_line, loc.start.col, end_line, loc.end.col))
|
||||||
},
|
},
|
||||||
(Some(start_line), None) => {
|
(Some(start_line), None) => {
|
||||||
Some((start_line, loc.start.col, Line(0), grid.num_cols()))
|
Some((start_line, loc.start.col, Line(0), Column(0)))
|
||||||
},
|
},
|
||||||
(None, Some(end_line)) => {
|
(None, Some(end_line)) => {
|
||||||
Some((grid.num_lines(), Column(0), end_line, loc.end.col))
|
Some((grid.num_lines(), Column(0), end_line, loc.end.col))
|
||||||
|
|
Loading…
Reference in a new issue