2xEnter (unindent) should re-compute the appropriate number in nested numbered lists

Indented numbers are wrong and look like this:

1. test
   1. test
   2. test
   3. test
4. (this number should be "2." to maintain consistency with indented number above

Steps to reproduce

1. type 1. <insert desired text here>
2. hit enter then tab to start indentation, <type desired text>, hit enter
3. <type desired text>, hit enter
4. <type desired text>, hit enter
5. hit enter twice to go to first level of bulleted list, and this is new number will continue from where the indented list left off rather than the continuing from the leftmost indented space.

Expected result

  1. test
    1. test
    2. test
    3. test
  2. test

Actual result

1. test
      1. test
      2. test
      3. test
4. test

Environment

  • Operating system: Windows 11
  • Debug info:

Additional information

Works correctly on Mac and iOS. Did you test in the sandbox vault?

This happens to me as well on Garuda Linux. The sandbox vault will not revert the number when outdenting when double pressing Enter. It will work when using Shift + Tab, though.

I can repro.

Sorry, I was mistaken — I do see the problem on iOS. I had tested with Shift+Tab, not double Enter (haven’t retested Mac but it’s prolly the same).