fix incorrect line textual coordinates when triple-dragging code slices

This commit is contained in:
Ryan Fleury
2024-12-06 16:32:43 -08:00
parent 08a368dd66
commit edfbcb9c85
+1 -1
View File
@@ -1374,7 +1374,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
break;
}
}
mouse_line_rng = txt_rng(txt_pt(mouse_pt.line, 1), txt_pt(mouse_pt.line, 1+line_range.max));
mouse_line_rng = txt_rng(txt_pt(mouse_pt.line, 1), txt_pt(mouse_pt.line, 1+(line_range.max-line_range.min)));
}
//////////////////////////////