Skip to content

Commit 0c649bf

Browse files
authored
Fix the inline prediction to not leak color (#1861)
1 parent 081bde6 commit 0c649bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PSReadLine/Render.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ void RenderOneChar(char charToRender, bool toEmphasize)
345345
{
346346
RenderOneChar(charToRender, toEmphasize: false);
347347
}
348+
349+
// Reset the inline prediction color, so that the color setting doesn't leak.
350+
UpdateColorsIfNecessary(VTColorUtils.AnsiReset);
348351
}
349352

350353
if (_statusLinePrompt != null)

0 commit comments

Comments
 (0)