Fix off by one in terminal select all

This commit is contained in:
Jeremy Soller 2023-12-22 15:47:59 -07:00
parent 37acfe186e
commit 898e3add26
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -290,7 +290,7 @@ impl Terminal {
let mut term = self.term.lock();
let grid = term.grid();
let start = Point::new(Line(-(grid.history_size() as i32)), Column(0));
let end = Point::new(Line(grid.screen_lines() as i32), Column(grid.columns()));
let end = Point::new(Line(grid.screen_lines() as i32 - 1), Column(grid.columns() - 1));
let mut selection = Selection::new(SelectionType::Lines, start, Side::Left);
selection.update(end, Side::Right);
term.selection = Some(selection);