mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-05 10:59:54 +00:00
fixed line breaks when pasting on Windows (fixes #396)
This commit is contained in:
parent
a10c6e6251
commit
627d7402ca
@ -302,7 +302,11 @@ export class TerminalTabComponent extends BaseTabComponent {
|
||||
if (this.config.store.terminal.bracketedPaste) {
|
||||
data = '\x1b[200~' + data + '\x1b[201~'
|
||||
}
|
||||
data = data.replace(/\n/g, '\r')
|
||||
if (this.hostApp.platform === Platform.Windows) {
|
||||
data = data.replace(/\r\n/g, '\r')
|
||||
} else {
|
||||
data = data.replace(/\n/g, '\r')
|
||||
}
|
||||
this.sendInput(data)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user