Now it becomes clear to me, how I have to add my list.
If you put my code under a button, does it work on openSUSE?
If not, then there is something fishy with openSUSE.
If it does, then there is something wrong with your code.
You need to put the SelStart right after the last numbered line.
NOT below it.
If you put it below it, the numbering won't work anymore.
If you put it after the last numbered item and add the new item with #13 in front,
it will act just like you typed it (enter and then text).
It's the same with ending a line with BOLD text.
If you begin typing on a new line, you don't get BOLD.
If you go to the end of the last line with BOLD and you press enter, and then text, you do get BOLD.
It's the same with the numbering, you need to start at the end of the last numbered line (and add #13 + text).