Only change mark when line changed.