Fix last/first line of selection sometimes not drawing

The last ydisp wasn't being updated on early exits.

Fixes #3080
This commit is contained in:
Daniel Imms
2020-09-07 09:46:43 -07:00
parent 41673f2c20
commit ca9df42a73
@@ -75,6 +75,7 @@ export class SelectionRenderLayer extends BaseRenderLayer {
// No need to draw the selection
if (viewportCappedStartRow >= this._bufferService.rows || viewportCappedEndRow < 0) {
this._state.ydisp = this._bufferService.buffer.ydisp;
return;
}