Skip to content

Commit 6b7c48a

Browse files
authored
Fix a bug in tooltip rendering that caused incorrect calculation of the tooltip height (#3671)
1 parent 0032acb commit 6b7c48a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/Prediction.Views.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ private int RenderTooltip(string tooltip, List<StringBuilder> consoleBufferLines
10541054
}
10551055

10561056
buff.Append(VTColorUtils.AnsiReset);
1057-
return _maxTooltipHeight - linesLeft > 0 ? linesLeft : 0;
1057+
return _maxTooltipHeight - (linesLeft > 0 ? linesLeft : 0);
10581058
}
10591059

10601060
/// <summary>

0 commit comments

Comments
 (0)