diff --git a/terminus-terminal/src/frontends/xtermFrontend.ts b/terminus-terminal/src/frontends/xtermFrontend.ts index b6e3fdd3..c3c2368f 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -48,7 +48,7 @@ export class XTermFrontend extends Frontend { this.title.next(title) }) this.xterm.onSelectionChange(() => { - if (this.copyOnSelect) { + if (this.copyOnSelect && this.getSelection()) { this.copySelection() } })