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
@@ -196,7 +196,7 @@ export class RectangleRenderer {
} else {
// Draw first row
const startCol = model.viewportStartRow === model.viewportCappedStartRow ? model.startCol : 0;
const startRowEndCol = model.viewportCappedStartRow === model.viewportCappedEndRow ? model.endCol : terminal.cols;
const startRowEndCol = model.viewportCappedStartRow === model.viewportEndRow ? model.endCol : terminal.cols;
this._addRectangleFloat(
this._vertices.selection,
0,