Fix a couple bugs with cursors and marks and rolling text in line mode.