Display the line numbers with auto update for issue #7.

The auto update is long to avoid stack overflow, but a better compromise should be found.