Commit 2fd3cd9
committed
Fix bad line number assertion due to undefined leaf in
This is the line number side of ecddf84 (from #21924).
I've stared at this code way too much, since I think that there is
something more fundamentally wrong here. E.g., `EditWalker` only
`push`es to `startPath` but never pops even a `children`-less node that
is left after deleting the whole contents. But I can't figure out the
overall structure, which is also why I couldn't come up with a good way
to test it (and this is also similar to #21924).
Fixes #44518.LineNode
1 parent 906cbd2 commit 2fd3cd9
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 70 | + | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
684 | 682 | | |
685 | 683 | | |
686 | 684 | | |
687 | | - | |
| 685 | + | |
| 686 | + | |
688 | 687 | | |
689 | 688 | | |
690 | 689 | | |
| |||
0 commit comments