aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-03-13 22:07:23 +0100
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitb0f272f41950558cfec36414d2430d524d7b8b55 (patch)
tree8a131a409057948c5ff143ae5b55e8a502243f6b /src/term/mod.rs
parent58c69cafad3b1dafa3631d911c6bfc21f5e5dec5 (diff)
downloadalacritty-b0f272f41950558cfec36414d2430d524d7b8b55.tar.gz
alacritty-b0f272f41950558cfec36414d2430d524d7b8b55.zip
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.
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 8db21402..c8017262 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -134,7 +134,7 @@ impl<'a> RenderableCellsIter<'a> {
Some((start_line, loc.start.col, end_line, loc.end.col))
},
(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)) => {
Some((grid.num_lines(), Column(0), end_line, loc.end.col))