Clean up singleCursorHeightPerLine implementation