<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [[版本 10.0.18362.10019]]
Windows Terminal version (if applicable):Windows Terminal (Preview) Version: 0.5.2681.0

Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [[版本 10.0.18362.10019]]
Windows Terminal version (if applicable):Windows Terminal (Preview) Version: 0.5.2681.0

Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>

<p dir="auto">when drag and select some character, now right click the mouse. the terminal will exit without any clue.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">terminal do not exit, and paste the txt I selected.</p>

<h1 dir="auto">Actual behavior</h1>
<p dir="auto">windows closed.</p>
<p dir="auto">Windows Terminal Preview crashes when using right click to copy multiple lines of text in PowerShell 7.0.0-preview.4.</p>
<p dir="auto"><a href="https://aka.ms/AA6486q" rel="nofollow">Feedback Hub link with crash</a></p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2661.0

Any other software?

PowerShell 7.0.0-preview4
"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2661.0

Any other software?

PowerShell 7.0.0-preview4

</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open PowerShell Core 7 Preview-4 in Windows Terminal</li>
<li>Left click select multiple lines, and then right click.</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Right click should copy text.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Crash. Occurs 100% of the time following these steps. I've tried it 6 times and got the crash all 6  times.</p>
<p dir="auto">I believe this is a regression as this did not occur in the previous version of Windows Terminal Preview.</p>