summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/readline.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/readline.js b/lib/readline.js
index 9aab753611..c4751aa814 100644
--- a/lib/readline.js
+++ b/lib/readline.js
@@ -255,6 +255,11 @@ Interface.prototype._ttyWrite = function (b) {
this._historyPrev();
} 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._refreshLine();
}
break;