Skip to content

Commit

Permalink
Remove [DebuggerDisplay] from Paragraph
Browse files Browse the repository at this point in the history
The `_text` field no longer exists, so hovering over instances in the debugger just shows an error message.
  • Loading branch information
martincostello authored and patriksvensson committed Feb 23, 2024
1 parent 8da05bc commit d30b082
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Spectre.Console/Widgets/Paragraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ namespace Spectre.Console;
/// A paragraph of text where different parts
/// of the paragraph can have individual styling.
/// </summary>
[DebuggerDisplay("{_text,nq}")]
public sealed class Paragraph : Renderable, IHasJustification, IOverflowable
{
private readonly List<SegmentLine> _lines;
Expand Down Expand Up @@ -281,4 +280,4 @@ private List<SegmentLine> SplitLines(int maxWidth)

return lines;
}
}
}

0 comments on commit d30b082

Please sign in to comment.