Fix off by one in terminal select all
This commit is contained in:
parent
37acfe186e
commit
898e3add26
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue