Skip to content

Commit

Permalink
fix: correct issue with mac-os tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 authored and escapedcat committed Nov 2, 2021
1 parent 1f912c2 commit c285805
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions @commitlint/prompt/src/inquirer/InputCustomPrompt.ts
Expand Up @@ -56,11 +56,9 @@ export default class InputCustomPrompt<
* @see https://nodejs.org/api/readline.html#readline_rl_line
*/
updateLine(line: string): void {
/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-ignore
this.rl.line = line;
// @ts-ignore
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));
}

onKeyPress2(e: KeyDescriptor): void {
Expand Down

0 comments on commit c285805

Please sign in to comment.