Closed Wallunen closed 8 months ago
Do you have screenshots before and after this change?
Also, the tests have to pass.
What was broken before this change? What symptoms were you seeing?
The broken version is shown in the above screenshot. Empty lines were not being re-rendered when scrolling.
How does this change fix that?
By removing an early return that apparently was skipping the rendering of empty lines.
Do you have screenshots before and after this change?
Here is a screenshot of the after.
Also, the tests have to pass.
Are those specific tests important? Can they be removed?
Now released with v1.18.1, thanks for the fix!
Regarding tests in general, they are just code, and like any other code they need to work.
In some cases it's easier to start by updating the tests to reflect the behavior you want and then adapt the code until the new tests pass.
In this particular case, both of those tests check for empty line corner cases, which are easy to mess up (obviously, since I did just that), so they are very important.
The TestRenderLineEmpty and TestRenderLineOnlyTrailingSpaces tests fail now.