aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad AlSaleh <CE.Mohammad.Alsaleh@gmail.com>2024-01-27 09:49:22 +0300
committerGitHub <noreply@github.com>2024-01-27 06:49:22 +0000
commitee4fcc8801dbfea5dae710bdbe3661cca1e26a0f (patch)
tree1987bda1b2f63b57f25a63ac208a40d0e600abaa
parentb48ab148ff54c7e2e816765840568614d9e966f9 (diff)
downloadalacritty-ee4fcc8801dbfea5dae710bdbe3661cca1e26a0f.tar.gz
alacritty-ee4fcc8801dbfea5dae710bdbe3661cca1e26a0f.zip
Fix invalid bounds in selection range conversion
-rw-r--r--alacritty_terminal/src/selection.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty_terminal/src/selection.rs b/alacritty_terminal/src/selection.rs
index 31b7b309..34bbdaed 100644
--- a/alacritty_terminal/src/selection.rs
+++ b/alacritty_terminal/src/selection.rs
@@ -285,6 +285,7 @@ impl Selection {
return None;
}
start.point = start.point.grid_clamp(term, Boundary::Grid);
+ end.point = end.point.grid_clamp(term, Boundary::Grid);
match self.ty {
SelectionType::Simple => self.range_simple(start, end, columns),