Updates line number matching to be modal.