mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-19 15:51:53 +00:00
fixed #10454 - "Warn on multi-line paste" fails to trigger on Unix-style newlines (\n) in Windows
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user