don't copy empty selection (fixes #1346, fixes #1325)

This commit is contained in:
Eugene Pankov 2019-08-07 15:21:58 +02:00
parent dbb6c544de
commit 07ab28279c

View File

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