fix: always fall back to native clipboard after OSC52 (#11994)
This commit is contained in:
parent
185858749b
commit
82dd4b6908
1 changed files with 3 additions and 2 deletions
|
|
@ -148,8 +148,9 @@ export namespace Clipboard {
|
||||||
export async function copy(text: string): Promise<void> {
|
export async function copy(text: string): Promise<void> {
|
||||||
const renderer = rendererRef.current
|
const renderer = rendererRef.current
|
||||||
if (renderer) {
|
if (renderer) {
|
||||||
const copied = renderer.copyToClipboardOSC52(text)
|
// Try OSC52 but don't early return - always fall back to native method
|
||||||
if (copied) return
|
// OSC52 may report success but not actually work in all terminals
|
||||||
|
renderer.copyToClipboardOSC52(text)
|
||||||
}
|
}
|
||||||
await getCopyMethod()(text)
|
await getCopyMethod()(text)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue