diff --git a/packages/inquirer/lib/prompts/input.js b/packages/inquirer/lib/prompts/input.js index a1f5789d3..2a090ad15 100644 --- a/packages/inquirer/lib/prompts/input.js +++ b/packages/inquirer/lib/prompts/input.js @@ -91,6 +91,8 @@ class InputPrompt extends Base { } onError(state) { + this.rl.line += state.value; + this.rl.cursor += state.value.length; this.render(state.isValid); }