1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 05:03:36 +03:00

don't copy text if empty

This commit is contained in:
Eugene Pankov 2021-09-17 00:23:30 +02:00
parent 3a615a070b
commit 8d3f4137a1
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -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(),