NewLineContinueMarkup wierdly increments values

Have this content

1. one
2. two

3. |
4. four

Where | cursor.

Invoke insertNewlineContinueMarkup command or simply press enter.

Actual:

1. one
2. two

|
5. four

expected

1. one
2. two

|
4. four

Github and IntelliJ would leave 4. CodeMirrors increments to 5 and I think it doesn’t make sense.

PS: It could leave it at 4 or decrement to 3, but 5 is definitively wrong.

This patch should make this behave better.

Wow, it even works better than I expected (cause it reindexes the obsolete 4. to a 3. ).

Perfect.

Can you release as a next tag, please?

Tagged as 0.19.4

1 Like