We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099759c commit 68ced40Copy full SHA for 68ced40
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
@@ -1468,7 +1468,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1468
1469
// Normalize line endings to 'enter' press.
1470
text = text.replace(/\r?\n/g, '\r');
1471
- if (addNewLine && text.at(-1) !== '\r') {
+ if (addNewLine && text[text.length - 1] !== '\r') {
1472
text += '\r';
1473
}
1474
0 commit comments