Repository navigation
Commit 24da517
committed
fix(web): Backspace no longer re-nests a checkbox under a bullet
A checkbox nested under a bullet (or a bullet under a checkbox) has no list
of its own kind one level up, so lifting it fails. The fallback,
joinBackward, then wrapped the item into a new list under the item above,
and the next Backspace lifted it back out, so the line could never be
deleted. For the first such item with a sibling below, it fell through to
selecting the parent line, and a second Backspace deleted the parent's
text. Join the line onto the one above with joinTextblockBackward instead,
which is what the fallback was meant to do.1 parent c8a606c commit 24da517
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
71 | 90 | | |
72 | 91 | | |
73 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
| 1138 | + | |
| 1139 | + | |
1139 | 1140 | | |
1140 | 1141 | | |
1141 | 1142 | | |
| |||
0 commit comments