-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
In some weird cases, if you have an numbered list, and you have a couple of empty list items, auto-formatting will mess up the ordering of the list.
Also when that happens, the undo keymap doesn't work properly.
Steps to Reproduce
- Start a numbered list of 3 items
- On items number 2, press
oin normal mode, or<CR>in insert mode - Repeat step 2 on the last item
- Save the changes, if auto-format is configured on save, the list items numbering will get messed up.
Expected Behavior
It should either delete the empty list items, or not change the numbering.
Also undo behavior should not get affected by this.
Actual Behavior
The items numbers get randomly changed:
- A
- b
- c
Environment
- Neovim version: (output of
nvim --version) - Plugin version: (commit hash or tag)
- OS: (macOS, Linux, Windows, etc.)
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

