Skip to content

Commit

Permalink
Append reset VT sequence before rendering the ineline prediction (#3669)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw committed May 3, 2023
1 parent ae08ca6 commit 0032acb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PSReadLine/Prediction.Views.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,7 @@ internal override void RenderSuggestion(List<StringBuilder> consoleBufferLines,
StringBuilder currentLineBuffer = consoleBufferLines[currentLogicalLine];

currentLineBuffer
.Append(VTColorUtils.AnsiReset)
.Append(_singleton._options._inlinePredictionColor)
.Append(_suggestionText, inputLength, _renderedLength - inputLength);

Expand Down

0 comments on commit 0032acb

Please sign in to comment.