Skip to content

Commit 912e0aa

Browse files
committed
fixed #10454 - "Warn on multi-line paste" fails to trigger on Unix-style newlines (\n) in Windows
1 parent 4a5087a commit 912e0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabby-terminal/src/api/baseTerminalTab.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
542542
}
543543

544544
if (!this.alternateScreenActive) {
545-
if (data.includes('\r') && this.config.store.terminal.warnOnMultilinePaste) {
545+
if ((data.includes('\r') || data.includes('\n')) && this.config.store.terminal.warnOnMultilinePaste) {
546546
const buttons = [
547547
this.translate.instant('Paste'),
548548
this.translate.instant('Cancel'),

0 commit comments

Comments
 (0)