properly invalidate old area of selection on mouse move

This commit is contained in:
cy384 2021-06-01 23:02:18 -04:00
parent cad648bb4a
commit 887237e0c7
1 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,9 @@ void update_selection_end(void)
// only damage the selection if the mouse has moved outside of the last cell // only damage the selection if the mouse has moved outside of the last cell
if (last_mouse_cell_x != new_mouse_cell_x || last_mouse_cell_y != new_mouse_cell_y) if (last_mouse_cell_x != new_mouse_cell_x || last_mouse_cell_y != new_mouse_cell_y)
{ {
// damage the old selection
damage_selection();
con.select_end_x = new_mouse_cell_x; con.select_end_x = new_mouse_cell_x;
con.select_end_y = new_mouse_cell_y; con.select_end_y = new_mouse_cell_y;