From 912e0aa4267164046b86fc8c6639ab19bc3ad24d Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 25 May 2025 08:46:34 +0200 Subject: [PATCH] fixed #10454 - "Warn on multi-line paste" fails to trigger on Unix-style newlines (\n) in Windows --- tabby-terminal/src/api/baseTerminalTab.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-terminal/src/api/baseTerminalTab.component.ts b/tabby-terminal/src/api/baseTerminalTab.component.ts index 1084c0ae..e26ca640 100644 --- a/tabby-terminal/src/api/baseTerminalTab.component.ts +++ b/tabby-terminal/src/api/baseTerminalTab.component.ts @@ -542,7 +542,7 @@ export class BaseTerminalTabComponent

extends Bas } if (!this.alternateScreenActive) { - if (data.includes('\r') && this.config.store.terminal.warnOnMultilinePaste) { + if ((data.includes('\r') || data.includes('\n')) && this.config.store.terminal.warnOnMultilinePaste) { const buttons = [ this.translate.instant('Paste'), this.translate.instant('Cancel'),