fixed #7028 - only trim starting whitespace in pasted text if it's a single line

This commit is contained in:
Eugene Pankov
2022-10-25 21:58:51 +02:00
parent d3982f5f73
commit 270f273ff1

View File

@@ -488,7 +488,10 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
}
} else {
if (this.config.store.terminal.trimWhitespaceOnPaste) {
data = data.trim()
data = data.trimEnd()
if (!data.includes('\r')) {
data = data.trimStart()
}
}
}
}