Double check how we reflow for a huge height delta #16033
Labels
Area-Output
Related to output processing (inserting text into buffer, retrieving buffer text, etc.)
Issue-Task
It's a feature request, but it doesn't really need a major design.
Product-Conhost
For issues in the Console codebase
Milestone
Yes, exactly that. I did it for this test specifically:
terminal/src/buffer/out/ut_textbuffer/ReflowTests.cpp
Lines 294 to 315 in fc4a37e
$
is the cursor.false
in each line means that it has an explicit newline (true
= force wrap).It has a lot of comments about bugs in the old implementation, which is why the entire text past the cursor fits into the new buffer. In the new, fixed implementation the
false
= explicit newlines are correctly handled and so it doesn't fit anymore:terminal/src/buffer/out/ut_textbuffer/ReflowTests.cpp
Lines 294 to 315 in 6374aec
Basically I had to make a choice over whether I:
If the new cursor position is now somewhere at a negative Y, we just put it at (0,0).
I chose the latter. What do you think we should do?
Originally posted by @lhecker in #15701 (comment)
The text was updated successfully, but these errors were encountered: