Fix cursor in lastline.