We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae268f commit f5b0fddCopy full SHA for f5b0fdd
src/terminal/adapter/adaptDispatch.cpp
@@ -3391,8 +3391,10 @@ bool AdaptDispatch::_EraseAll()
3391
// terminal application. While we're in conpty mode, when the client
3392
// requests a Erase All operation, we need to manually tell the
3393
// connected terminal to do the same thing, so that the terminal will
3394
- // move it's own buffer contents into the scrollback.
3395
- 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
3396
+ // visible effect for an inactive buffer.
3397
+ return !(inPtyMode && textBuffer.IsActiveBuffer());
3398
}
3399
3400
//Routine Description:
0 commit comments