diff --git a/PSReadLine/Prediction.Views.cs b/PSReadLine/Prediction.Views.cs index f64e6f5b..a2770eca 100644 --- a/PSReadLine/Prediction.Views.cs +++ b/PSReadLine/Prediction.Views.cs @@ -1054,7 +1054,7 @@ private int RenderTooltip(string tooltip, List consoleBufferLines } buff.Append(VTColorUtils.AnsiReset); - return _maxTooltipHeight - linesLeft > 0 ? linesLeft : 0; + return _maxTooltipHeight - (linesLeft > 0 ? linesLeft : 0); } ///