aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad AlSaleh <CE.Mohammad.Alsaleh@gmail.com>2024-01-27 09:49:22 +0300
committerChristian Duerr <contact@christianduerr.com>2024-03-19 02:20:53 +0100
commit97f3a7694ad8910cadf36a2c08bcc5d19114841a (patch)
treefa075611c343ca5a87594e84fc389c18d13c3973
parentc661eb462e5c3e54264f112609098f0542faaa4a (diff)
downloadalacritty-97f3a7694ad8910cadf36a2c08bcc5d19114841a.tar.gz
alacritty-97f3a7694ad8910cadf36a2c08bcc5d19114841a.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),