mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fix style in readline
This commit is contained in:
1 parent
0fd1656d63
commit
65f2e72d77
1 file changed
+2
-3
+2
-3
@@ -256,9 +256,8 @@ Interface.prototype._ttyWrite = function (b) {
|
||||
} else if (b[1] === 91 && b[2] === 66) { // down arrow
|
||||
this._historyNext();
|
||||
} else if (b[1] === 91 && b[2] === 51 && this.cursor < this.line.length) { // delete right
|
||||
this.line = this.line.slice(0, this.cursor)
|
||||
+ this.line.slice(this.cursor+1, this.line.length)
|
||||
;
|
||||
this.line = this.line.slice(0, this.cursor) +
|
||||
this.line.slice(this.cursor+1, this.line.length);
|
||||
this._refreshLine();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user