mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 14:52:45 +00:00
don't copy text if empty
This commit is contained in:
parent
3a615a070b
commit
8d3f4137a1
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue