Skip to content

Commit

Permalink
Only propagate ED2 through conpty for the active buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Feb 25, 2024
1 parent 8ae268f commit f5b0fdd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/terminal/adapter/adaptDispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3391,8 +3391,10 @@ bool AdaptDispatch::_EraseAll()
// terminal application. While we're in conpty mode, when the client
// requests a Erase All operation, we need to manually tell the
// connected terminal to do the same thing, so that the terminal will
// move it's own buffer contents into the scrollback.
return !inPtyMode;
// move it's own buffer contents into the scrollback. But this only
// applies if we're in the active buffer, since this should have no
// visible effect for an inactive buffer.
return !(inPtyMode && textBuffer.IsActiveBuffer());
}

//Routine Description:
Expand Down

0 comments on commit f5b0fdd

Please sign in to comment.