Skip to content

Commit 68ced40

Browse files
committed
Don't use at() yet
1 parent 099759c commit 68ced40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
14681468

14691469
// Normalize line endings to 'enter' press.
14701470
text = text.replace(/\r?\n/g, '\r');
1471-
if (addNewLine && text.at(-1) !== '\r') {
1471+
if (addNewLine && text[text.length - 1] !== '\r') {
14721472
text += '\r';
14731473
}
14741474

0 commit comments

Comments
 (0)