Allow selecting words and lines when selecting text

Previously if you moved the cursor after double or triple clicking, the selection would switch back to character selection.

Now the next/previous word/line is selected.