Allow formatting breakdown charts with lambda expr

Relates to #252
This commit is contained in:
Patrik Svensson
2021-02-13 17:02:05 +01:00
committed by Patrik Svensson
parent 28e9c14de4
commit 102e2dc38d
6 changed files with 60 additions and 13 deletions

View File

@@ -44,6 +44,11 @@ namespace Spectre.Console
bars = Math.Max(0, bars);
}
if (bars < 0)
{
yield break;
}
yield return new Segment(new string(token, bars), style);
if (ShowValue)