Compare commits

...

2 commits

Author SHA1 Message Date
Mike Griese 4fffa68a92 yes, it was in fact overkill 2021-07-15 12:16:17 -05:00
Mike Griese fb0fd833f2 This definitely works, but may be overkill 2021-07-15 11:58:25 -05:00

View file

@ -1016,6 +1016,13 @@ void Terminal::_AdjustCursorPosition(const COORD proposedPosition)
_patternIntervalTree = {};
}
// GH#10332 - If the viewport is scrolled up, and the cursor would move
// _below_ the visible viewport, then snap down to where the mutable
// viewport is.
if (_scrollOffset != 0 && proposedCursorPosition.Y > _GetVisibleViewport().BottomInclusive())
{
_scrollOffset = 0;
}
// Update Cursor Position
cursor.SetPosition(proposedCursorPosition);