Skip to content

Commit c031135

Browse files
committed
Fix clearing if on the last row
1 parent 58ddbe9 commit c031135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cascadia/TerminalControl/ControlCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
22822282
if (clearType == ClearBufferType::Screen || clearType == ClearBufferType::All)
22832283
{
22842284
// Erase any viewport contents below (but not including) the cursor row.
2285-
if (viewport.Height() - cursor.y > 0)
2285+
if (viewport.Height() - cursor.y > 1)
22862286
{
22872287
fmt::format_to(std::back_inserter(sequence), FMT_COMPILE(L"\x1b[{};1H\x1b[J"), cursor.y + 2);
22882288
}

0 commit comments

Comments
 (0)