diff options
author | Mohammad AlSaleh <CE.Mohammad.Alsaleh@gmail.com> | 2024-01-27 09:49:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 06:49:22 +0000 |
commit | ee4fcc8801dbfea5dae710bdbe3661cca1e26a0f (patch) | |
tree | 1987bda1b2f63b57f25a63ac208a40d0e600abaa | |
parent | b48ab148ff54c7e2e816765840568614d9e966f9 (diff) | |
download | alacritty-ee4fcc8801dbfea5dae710bdbe3661cca1e26a0f.tar.gz alacritty-ee4fcc8801dbfea5dae710bdbe3661cca1e26a0f.zip |
Fix invalid bounds in selection range conversion
-rw-r--r-- | alacritty_terminal/src/selection.rs | 1 |
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), |