We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d840c commit 3ab85e2Copy full SHA for 3ab85e2
@commitlint/prompt/src/inquirer/InputCustomPrompt.ts
@@ -56,11 +56,9 @@ export default class InputCustomPrompt<
56
* @see https://nodejs.org/api/readline.html#readline_rl_line
57
*/
58
updateLine(line: string): void {
59
- /* eslint-disable @typescript-eslint/ban-ts-comment */
60
- // @ts-ignore
61
- this.rl.line = line;
62
63
- this.rl.write(null, {ctrl: true, name: 'e'});
+ this.rl.write(null as any, {ctrl: true, name: 'b'});
+ this.rl.write(null as any, {ctrl: true, name: 'd'});
+ this.rl.write(line.substr(this.rl.line.length));
64
}
65
66
onKeyPress2(e: KeyDescriptor): void {
0 commit comments