diff options
author | Mohammad AlSaleh <CE.Mohammad.Alsaleh@gmail.com> | 2024-01-27 09:49:22 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-03-19 02:20:53 +0100 |
commit | 97f3a7694ad8910cadf36a2c08bcc5d19114841a (patch) | |
tree | fa075611c343ca5a87594e84fc389c18d13c3973 | |
parent | c661eb462e5c3e54264f112609098f0542faaa4a (diff) | |
download | alacritty-97f3a7694ad8910cadf36a2c08bcc5d19114841a.tar.gz alacritty-97f3a7694ad8910cadf36a2c08bcc5d19114841a.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), |