From 8d3f4137a1fab426dbc1c0d52491fa53fd165c5b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 17 Sep 2021 00:23:30 +0200 Subject: [PATCH] don't copy text if empty --- tabby-terminal/src/frontends/xtermFrontend.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tabby-terminal/src/frontends/xtermFrontend.ts b/tabby-terminal/src/frontends/xtermFrontend.ts index 1f25d141..32ba2ff0 100644 --- a/tabby-terminal/src/frontends/xtermFrontend.ts +++ b/tabby-terminal/src/frontends/xtermFrontend.ts @@ -206,6 +206,9 @@ export class XTermFrontend extends Frontend { copySelection (): void { const text = this.getSelection() + if (!text.trim().length) { + return + } if (text.length < 1024 * 32) { this.platformService.setClipboard({ text: this.getSelection(),