mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-07 13:00:02 +00:00
fixed #10454 - "Warn on multi-line paste" fails to trigger on Unix-style newlines (\n) in Windows
This commit is contained in:
parent
4a5087afc1
commit
912e0aa426
@ -542,7 +542,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> 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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user