yes, it was in fact overkill
This commit is contained in:
parent
fb0fd833f2
commit
4fffa68a92
|
@ -1049,10 +1049,7 @@ void Terminal::_AdjustCursorPosition(const COORD proposedPosition)
|
||||||
// scroll if...
|
// scroll if...
|
||||||
// - no selection is active
|
// - no selection is active
|
||||||
// - viewport is already at the bottom
|
// - viewport is already at the bottom
|
||||||
const Viewport visible{ _GetVisibleViewport() };
|
const bool scrollToOutput = !IsSelectionActive() && _scrollOffset == 0;
|
||||||
const bool cursorInViewport{ proposedCursorPosition.Y >= visible.Top() &&
|
|
||||||
proposedCursorPosition.Y <= visible.BottomInclusive() };
|
|
||||||
const bool scrollToOutput = !IsSelectionActive() && !cursorInViewport /*&& _scrollOffset == 0*/;
|
|
||||||
|
|
||||||
_scrollOffset = scrollToOutput ? 0 : _scrollOffset + scrollAmount + newRows;
|
_scrollOffset = scrollToOutput ? 0 : _scrollOffset + scrollAmount + newRows;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue