From 2f78575cd75720f404fcb643846eaf0a7e0bb851 Mon Sep 17 00:00:00 2001 From: LeSeulArtichaut Date: Sat, 28 Dec 2019 22:48:06 +0100 Subject: [PATCH] Implement setting --- terminus-terminal/src/api/baseTerminalTab.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminus-terminal/src/api/baseTerminalTab.component.ts b/terminus-terminal/src/api/baseTerminalTab.component.ts index f7e83de8..5b388bcf 100644 --- a/terminus-terminal/src/api/baseTerminalTab.component.ts +++ b/terminus-terminal/src/api/baseTerminalTab.component.ts @@ -353,7 +353,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit this.frontend.mouseEvent$.subscribe(async event => { if (event.type === 'mousedown') { if (event.which === 2) { - this.paste() + if (this.config.store.terminal.pasteOnMiddleClick) { + this.paste() + } event.preventDefault() event.stopPropagation() return