1
1
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:
Eugene Pankov 2018-04-01 20:05:30 +02:00
parent 5087224017
commit 30f221d05e

View File

@ -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)
} }