mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
MarkNodeStart and BeginSpan captured builder.Length to anchor a node range or highlight span, but indentation is written lazily on the first token of a line. A node or span opened at the start of an indented line therefore recorded its start before the leading tabs, so the debug-step highlight (and any span) extended back across the indentation to column 0. Flush the pending indent in both before capturing the offset, matching the WPF AvalonEditTextOutput.BeginSpan the Avalonia port derived from. The emitted text is unchanged -- the indent is written either way, in the same place; only the recorded start moves to the first real character. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3847/head
2 changed files with 55 additions and 8 deletions
Loading…
Reference in new issue