test: Task 7 review - broaden move/delete/duplicate coverage, fix outline for delete-only changes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -194,7 +194,9 @@ class DiviWriter
|
||||
{
|
||||
$sections = [];
|
||||
foreach ($change->entries() as $entry) {
|
||||
$id = $entry['block'] !== null ? $index->idOf($entry['block']) : null;
|
||||
// Same id resolution as the "changed" entries below: a removed node has no block
|
||||
// any more, but its id from before the removal still names the (surviving) section.
|
||||
$id = $entry['id'] ?? ($entry['block'] !== null ? $index->idOf($entry['block']) : null);
|
||||
if ($id !== null) {
|
||||
$sections[explode('.', $id)[0]] = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user