Skip to content

Fix the default k-path walk looping forever at a leaf - #134

Merged
luketpeterson merged 3 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/default-k-path-walk-at-leaf
Sep 25, 2026
Merged

luketpeterson merged 3 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/default-k-path-walk-at-leaf

Conversation

@imlvts

@imlvts imlvts commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

With nothing below the base and no sibling, k_path_default_internal never reached its exit and spun. It also let k = 0 step sideways from the base. Stop when back at the base.

With nothing below the base and no sibling, k_path_default_internal never
reached its exit and spun. It also let k = 0 step sideways from the base.
Stop when back at the base.
@luketpeterson

Copy link
Copy Markdown
Collaborator

Good fix. I'm surprised it was able to lurk that long. I lifted the test up so it hits all zipper types. Merging.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants