Skip to content

Commit

Permalink
Don't reset the cursor X to 0 when we would otherwise wrap
Browse files Browse the repository at this point in the history
Fixes #3277.
Partially reverts #2965.
  • Loading branch information
DHowett committed Oct 22, 2019
1 parent 9c7e8ce commit 59e1baf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cascadia/TerminalCore/Terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,6 @@ void Terminal::_WriteBuffer(const std::wstring_view& stringView)
}
}

if (proposedCursorPosition.X > bufferSize.RightInclusive())
{
proposedCursorPosition.X = 0;
}

// If we're about to scroll past the bottom of the buffer, instead cycle the buffer.
const auto newRows = proposedCursorPosition.Y - bufferSize.Height() + 1;
if (newRows > 0)
Expand Down

0 comments on commit 59e1baf

Please sign in to comment.