enhance cursor line behaviour.