Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1.1 KiB
1.1 KiB
FAIL
C:/Users/zhang/Documents/Github/Ely-GPUI-Components/src/documents/document/block.rs:266—line_endnow returns an offset before a caret inside CRLF, but block-command callers still slice from the original caret. OpenIntro\r\nNext\r\nin Source mode, focus the editor, press End, then callMarkdownDocument::block(BlockCommand::CodeBlock): the caret is byte 6,line_endreturns 5, andblock/split.rs:53panics withbyte range starts at 6 but ends at 5. End followed by Shift+Right and the same command also panics, atblock/insert.rs:31. Rule, MathBlock, Toc, Footnote and LinkDefinition share the first failure. Both public interaction probes pass with07fee55's helpers and fail withce015e7, so this regresses completed block commands (MARK-15). Normalize the actual caret/selection offsets consistently before deriving and slicing ranges, preserving the decision to leave the editor's CRLF model unchanged, and cover these End-key interactions. Evidence:.work/R4.8-r3-review/probes.log,baseline-blocks.log,baseline-matrix.logandprobe-source.log.