Browse Source

Fixes #2664 prev terminal input can break command

main
Eric Amodio 1 year ago
parent
commit
482c173708
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/env/node/git/git.ts

+ 2
- 0
src/env/node/git/git.ts View File

@ -2073,6 +2073,8 @@ export class Git {
const terminal = ensureGitTerminal(); const terminal = ensureGitTerminal();
terminal.show(false); terminal.show(false);
// Sends ansi codes to remove any text on the current input line
terminal.sendText('\x1b[2K\x1b', false);
terminal.sendText(text, options?.execute ?? false); terminal.sendText(text, options?.execute ?? false);
} }

Loading…
Cancel
Save