Skip to content

Commit

Permalink
Merge pull request #1796 from riganti/fix/owin-compilation-page
Browse files Browse the repository at this point in the history
Fixed crashing compilation page on OWIN
  • Loading branch information
exyi committed Mar 8, 2024
2 parents 238cf89 + f88d399 commit a04a580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Framework/Compilation/DotHtmlFileInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public sealed record CompilationDiagnosticViewModel(
)
{
public string? SourceLine { get; set; } = SourceLine;
public string? SourceLinePrefix => SourceLine?.Remove(ColumnNumber ?? 0);
public string? SourceLinePrefix => SourceLine?.Substring(0, ColumnNumber ?? 0);
public string? SourceLineHighlight =>
HighlightLength is {} len ? SourceLine?.Substring(ColumnNumber ?? 0, len)
: SourceLine?.Substring(ColumnNumber ?? 0);
Expand Down

0 comments on commit a04a580

Please sign in to comment.