this will not work with hidden lines. Use `if (oldLength == buffer.lines.length)` instead.