Skip to content

Commit

Permalink
Fix a bug in tooltip rendering that caused incorrect calculation of t…
Browse files Browse the repository at this point in the history
…he tooltip height (#3671)
  • Loading branch information
daxian-dbw authored May 3, 2023
1 parent 0032acb commit 6b7c48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PSReadLine/Prediction.Views.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ private int RenderTooltip(string tooltip, List<StringBuilder> consoleBufferLines
}

buff.Append(VTColorUtils.AnsiReset);
return _maxTooltipHeight - linesLeft > 0 ? linesLeft : 0;
return _maxTooltipHeight - (linesLeft > 0 ? linesLeft : 0);
}

/// <summary>
Expand Down

0 comments on commit 6b7c48a

Please sign in to comment.