diff --git a/PSReadLine/Render.cs b/PSReadLine/Render.cs index f978770..354cd81 100644 --- a/PSReadLine/Render.cs +++ b/PSReadLine/Render.cs @@ -177,7 +177,12 @@ namespace Microsoft.PowerShell { if (!object.ReferenceEquals(newColor, activeColor)) { - if (!inSelectedRegion) _consoleBufferLines[currentLogicalLine].Append(newColor); + if (!inSelectedRegion) + { + _consoleBufferLines[currentLogicalLine] + .Append(VTColorUtils.AnsiReset) + .Append(newColor); + } activeColor = newColor; } }