line dist in cursor