There is a small bug that just keeps throwing me off.
When you copy some text and then paste it to the beginning of a line (or anywhere else in a text line), the cursor jumps to the end of the line, instead of where it should go. I am sure you'll understand.
Are you sure that the text is indented properly? This can happen when the text is not indented and then the auto formatting indents it and causes the cursor position to change.