Fixed bug where cursor wouldn't position at end of line.