Fix invalid bounds in selection range conversion

This commit is contained in:
Mohammad AlSaleh authored and GitHub committed 2024-01-27 06:49:22 +00:00
1 parent b48ab148ff
commit ee4fcc8801
1 file changed
+1
+1
View File
@@ -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),