The original code here looks superficially different from `_updateHiddenLines()`, but I'm pretty sure it's equivalent, since `_hideLines()` checks to make sure `from !== to`. And I wanted the mark cleanup code to happen in both places.