fix space wrap

Hi, i add this judgment. when offset > textView width, cursor will not show.