diff --git a/PSReadLine/Render.cs b/PSReadLine/Render.cs index f97877001..354cd8149 100644 --- a/PSReadLine/Render.cs +++ b/PSReadLine/Render.cs @@ -177,7 +177,12 @@ void UpdateColorsIfNecessary(string newColor) { if (!object.ReferenceEquals(newColor, activeColor)) { - if (!inSelectedRegion) _consoleBufferLines[currentLogicalLine].Append(newColor); + if (!inSelectedRegion) + { + _consoleBufferLines[currentLogicalLine] + .Append(VTColorUtils.AnsiReset) + .Append(newColor); + } activeColor = newColor; } }