clear selection on viewport/font resize (#4777)

## Summary of the Pull Request
Match conhost behavior and clear selection on viewport/font resize.

## PR Checklist
* [X] Closes #1165 

## Validation Steps Performed
Retried attached bug repro steps
This commit is contained in:
Carlos Zamora 2020-03-02 12:45:31 -08:00 committed by GitHub
parent 7f43b40da9
commit a3eb427d8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1499,6 +1499,8 @@ namespace winrt::Microsoft::Terminal::TerminalControl::implementation
return;
}
_terminal->ClearSelection();
// Tell the dx engine that our window is now the new size.
THROW_IF_FAILED(_renderEngine->SetWindowSize(size));