When using 2 space indent, in this situation in a list:
With two backspaces you end up here, i.e. at a 2 space indent, which seems to be the intended behavior:
But with 4 space indent, the first backspace is working correctly:
But the second removes 4 spaces instead of 2, which leads to a wrong 2 space indent in a 4 space indent file:
I don’t think it is the intended behavior, and if it is, I’d like to understand the reason behind it.
The problem does not appear in 2 space indent just because 2 spaces is the length of the
- sequence that is removed at the first backspace, i.e. the indentation is never wrong.
But when using 4 space indent (4th picture), now it removes one indentation level from the right from a state where the indentation level is already wrong, because removing
- here breaks (here on purpose) the indentation. So the indentation level ends up being wrong (5th image). But the 4th picture wrongness is useful to make multiline list items (I believe), the second backspace just sets the cursor to a useless position: typing here makes no sense, for the writer and the renderer.
Numbered lists may have the same issue but I’m not familiar with them.
Thank you for your help