mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-23 13:13:49 +03:00
convert CRLF to LF on paste (fixes #293)
This commit is contained in:
parent
5087224017
commit
30f221d05e
@ -348,6 +348,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
if (this.hterm.options_.bracketedPaste) {
|
if (this.hterm.options_.bracketedPaste) {
|
||||||
data = '\x1b[200~' + data + '\x1b[201~'
|
data = '\x1b[200~' + data + '\x1b[201~'
|
||||||
}
|
}
|
||||||
|
data = data.replace(/\r\n/g, '\n')
|
||||||
this.sendInput(data)
|
this.sendInput(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user