From 482c173708f18ca925ec114f608b62553ca902e0 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 8 May 2023 16:08:40 -0400 Subject: [PATCH] Fixes #2664 prev terminal input can break command --- src/env/node/git/git.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/env/node/git/git.ts b/src/env/node/git/git.ts index b32e7ee..839ee82 100644 --- a/src/env/node/git/git.ts +++ b/src/env/node/git/git.ts @@ -2073,6 +2073,8 @@ export class Git { const terminal = ensureGitTerminal(); 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); }