Skip to content

Commit

Permalink
Merge pull request #214 from AuroraTea/patch-1
Browse files Browse the repository at this point in the history
docs: fix usage of String.substr()
  • Loading branch information
Tyriar authored Apr 22, 2024
2 parents 3272e9c + f447bc4 commit bc4e39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ $(function () {
if (term._core.buffer.x > 2) {
term.write('\b \b');
if (command.length > 0) {
command = command.substr(0, command.length - 1);
command = command.slice(0, command.length - 1);
}
}
break;
Expand Down

0 comments on commit bc4e39e

Please sign in to comment.