Fix rendering of multi-line selection when only top row is visible

Fixes #3069
This commit is contained in:
Daniel Imms
2020-09-07 09:40:02 -07:00
parent 41673f2c20
commit 9f033cb1d2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ export class SelectionRenderLayer extends BaseRenderLayer {
} else {
// Draw first row
const startCol = viewportStartRow === viewportCappedStartRow ? start[0] : 0;
const startRowEndCol = viewportCappedStartRow === viewportCappedEndRow ? end[0] : this._bufferService.cols;
const startRowEndCol = viewportCappedStartRow === viewportEndRow ? end[0] : this._bufferService.cols;
this._fillCells(startCol, viewportCappedStartRow, startRowEndCol - startCol, 1);
// Draw middle rows