Switched from SetSelection to SetCursor when handling tabs and newlines in the text area. Fixes #23