Skip to content

Commit

Permalink
I think this is all I need to support wrapped lines in the Terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Jan 27, 2020
1 parent 3719bad commit c21f740
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cascadia/TerminalCore/Terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,13 @@ void Terminal::_WriteBuffer(const std::wstring_view& stringView)
// With well behaving shells during normal operation this safeguard should normally not be encountered.
proposedCursorPosition.X = 0;
proposedCursorPosition.Y++;

// Try the character again.
// TODO/DANGER: Does this actually work? The above comment seems
// to mention the i-=1, but there was no such line here. This is
// _scary_. Perhaps this was never hit before we had conpty
// wrapping?
i--;
}
}

Expand Down

0 comments on commit c21f740

Please sign in to comment.