diff --git a/lib/readline.js b/lib/readline.js index 124fc8111b2f09..aefa00da46a5a9 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -795,10 +795,8 @@ Interface.prototype._ttyWrite = function(s, key) { } break; - case 'u': // delete the whole line - this.cursor = 0; - this.line = ''; - this._refreshLine(); + case 'u': // delete from current to start of line + this._deleteLineLeft(); break; case 'k': // delete from current to end of line