Browse Source

Fix style in readline

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
65f2e72d77
  1. 5
      lib/readline.js

5
lib/readline.js

@ -256,9 +256,8 @@ Interface.prototype._ttyWrite = function (b) {
} else if (b[1] === 91 && b[2] === 66) { // down arrow } else if (b[1] === 91 && b[2] === 66) { // down arrow
this._historyNext(); this._historyNext();
} else if (b[1] === 91 && b[2] === 51 && this.cursor < this.line.length) { // delete right } 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 = this.line.slice(0, this.cursor) +
+ this.line.slice(this.cursor+1, this.line.length) this.line.slice(this.cursor+1, this.line.length);
;
this._refreshLine(); this._refreshLine();
} }
break; break;

Loading…
Cancel
Save