Commit 0bb80df
authored
fix: keep line after deleting empty bullet (#27)
# Motivation
Pressing Return on an empty bullet with `delete_last_bullet_if_empty`
enabled removed the whole line, moving the cursor up. The spec now
requires the bullet marker to be cleared while keeping the cursor on
that line.
# Summary of Changes
- Route whitespace-only bullet text through the shared empty-bullet
handling.
- Remove the special-case insert-mode deletion path that used `ddi`.
- Update `LC-003` coverage and spec text to assert that the blank line
remains.
# Testing
- `mise run test:spec LC-003`
- `mise run test:spec LC-004`
- `mise run test:spec LC-005`
- `mise run openspec:check`
- `mise run test`
- `mise run fmt:check`
# Dependencies/Special Considerations
none1 parent a3eaa6f commit 0bb80df
3 files changed
Lines changed: 7 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | 911 | | |
923 | 912 | | |
924 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | | - | |
225 | | - | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 228 | + | |
231 | 229 | | |
232 | 230 | | |
233 | 231 | | |
| 232 | + | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
| |||
0 commit comments