Fix cannot select in terminal when copy_on_select is enabled (#34131)
Closes #33989

Release Notes:
- N/A
84124c60dbfeeiyu committed on 7/14/2025, 11:04:54 AM· committed by GitHubparentcf1ce1b