Skip to content

Commit

Permalink
Forgot this
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed Apr 26, 2024
1 parent 212187f commit 0cbd028
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cascadia/UnitTests_TerminalCore/ConptyRoundtripTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4852,13 +4852,7 @@ void ConptyRoundtripTests::ReflowPromptRegions()
til::point afterPos = originalPos;
// walk that original pos dx times into the actual real place in the buffer.
auto bufferViewport = tb.GetSize();
const auto walkDir = Viewport::WalkDir{ dx < 0 ? Viewport::XWalk::LeftToRight : Viewport::XWalk::RightToLeft,
dx < 0 ? Viewport::YWalk::TopToBottom : Viewport::YWalk::BottomToTop };
for (auto i = 0; i < std::abs(dx); i++)
{
bufferViewport.WalkInBounds(afterPos,
walkDir);
}
bufferViewport.WalkInBounds(afterPos, dx);
const auto expectedOutputStart = !afterResize ?
originalPos : // printed exactly a row, so we're exactly below the prompt
afterPos;
Expand Down

0 comments on commit 0cbd028

Please sign in to comment.