Since it doesn't use `linesInView` inside the forEach, I could just calculate the new `scrollTop` and `editorHeight` and call `_getLinesInView(textHeight, scrollTop, editorHeight);` just once after this for each.