Restrict left/right cursor movement to within single line