projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd1656
)
Fix style in readline
author
Ryan Dahl
<ry@tinyclouds.org>
Mon, 19 Jul 2010 17:16:20 +0000
(10:16 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 19 Jul 2010 17:16:20 +0000
(10:16 -0700)
lib/readline.js
patch
|
blob
|
history
diff --git
a/lib/readline.js
b/lib/readline.js
index
c4751aa
..
d2d3f11
100644
(file)
--- a/
lib/readline.js
+++ b/
lib/readline.js
@@
-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;