Skip to content

Fix remove_unmasked_branches at a dangling path - #112

Merged
luketpeterson merged 3 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/remove-unmasked-dangling
Sep 19, 2026
Merged

luketpeterson merged 3 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/remove-unmasked-dangling

Conversation

@imlvts

@imlvts imlvts commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

A dangling path is a link to the empty node, which get_child_mut won't return, so the zipper passed the stub's own key to the parent node as a branch and tripped a LineListNode debug assert. There is nothing below a dangling path to filter, so do nothing.

imlvts and others added 3 commits September 16, 2026 23:22
A dangling path is a link to the empty node, which get_child_mut won't
return, so the zipper passed the stub's own key to the parent node as a
branch and tripped a LineListNode debug assert. There is nothing below a
dangling path to filter, so do nothing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019R2H8fnco29asY2v3TPbtF
@luketpeterson

Copy link
Copy Markdown
Collaborator

Simplified the fix a lot. I honestly don't know what the clanker was thinking with this fix. Like a 20 line preflight block instead of adding one extra check (that was part of the 20 line block).

Anyway, simplified the fix. Merging.

@luketpeterson
luketpeterson merged commit 8d9e2d4 into Adam-Vandervorst:master Sep 19, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants