Made cursor left behave like GUI text editors by wrapping to the end of the line above
Refactored cursor movement code to reuse in making selection
Merge branch 'cursor-wraparound'