Skip to content

Commit

Permalink
Fix the inline prediction to not leak color (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw committed Oct 7, 2020
1 parent 081bde6 commit 0c649bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PSReadLine/Render.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ void RenderOneChar(char charToRender, bool toEmphasize)
{
RenderOneChar(charToRender, toEmphasize: false);
}

// Reset the inline prediction color, so that the color setting doesn't leak.
UpdateColorsIfNecessary(VTColorUtils.AnsiReset);
}

if (_statusLinePrompt != null)
Expand Down

0 comments on commit 0c649bf

Please sign in to comment.