Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ export class CanvasRenderer {
}
}

// Always mark previous selection rows for redraw (to clear old overlay)
// Always mark dirty selection rows for redraw (to clear old overlay)
if (this.selectionManager) {
const prevCoords = this.selectionManager.getPreviousSelectionCoords();
if (prevCoords) {
for (let row = prevCoords.startRow; row <= prevCoords.endRow; row++) {
const dirtyRows = this.selectionManager.getDirtySelectionRows();
if (dirtyRows.size > 0) {
for (const row of dirtyRows) {
selectionRows.add(row);
}
// Clear the previous selection tracking after marking for redraw
this.selectionManager.clearPreviousSelection();
// Clear the dirty rows tracking after marking for redraw
this.selectionManager.clearDirtySelectionRows();
}
}

Expand Down
Loading