Bugfix: ESC didn't clear selection (except CMD) (#647)
* Bugfix: ESC didn't clear selection (except CMD) * Bugfix: ESC didn't clear selection - moved TriggerSelection() to ClearSelection()
This commit is contained in:
parent
99555ef9e9
commit
644cd3ec6c
|
@ -960,7 +960,6 @@ namespace winrt::Microsoft::Terminal::TerminalControl::implementation
|
|||
const auto copiedData = _terminal->RetrieveSelectedTextFromBuffer(trimTrailingWhitespace);
|
||||
|
||||
_terminal->ClearSelection();
|
||||
_renderer->TriggerSelection();
|
||||
|
||||
// send data up for clipboard
|
||||
_clipboardCopyHandlers(copiedData);
|
||||
|
|
|
@ -560,6 +560,8 @@ void Terminal::ClearSelection() noexcept
|
|||
_endSelectionPosition = {0, 0};
|
||||
_selectionAnchor_YOffset = 0;
|
||||
_endSelectionPosition_YOffset = 0;
|
||||
|
||||
_buffer->GetRenderTarget().TriggerSelection();
|
||||
}
|
||||
|
||||
// Method Description:
|
||||
|
|
Loading…
Reference in a new issue