fixed some unusual behavior where it appeared to not be moving to the next line.  Also based 'next line' off the cursor position.