mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-26 03:51:49 +03:00
don't copy text if empty
This commit is contained in:
parent
3a615a070b
commit
8d3f4137a1
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user