Factorize the code to show status for tools needing to show line information.
... should have been part of last commit.