Fixed a bug with cursor placing. Changed selection drawing a bit to only
draw until the end of the line instead of the edge of the screen.