Fix for bug #65. Cursor moves at the beginning of highlighted misspelled word after typing or pasting into editor