When updating, delete the overlays only when really doing the update.
Add an option to disable counting invisible lines.