Cursor moves with proper lines again