Fixes the bug that line delimiter insertion right after mark doesn't work properly

just after cursor moving, checks the next element of the cursor, if mark is the next, cursor should be put just after the mark.
Any mark shouldn't be right after cursor