Space drawing regression
commit 0d97d63d introduced a regression for drawing at the end iter (with the implicit trailing newline option).
At the beginning of the while loop, see the call to gtk_text_iter_is_end()
. So the loop still needs to run one more time, instead of the "break;".
How to reproduce the bug
The bug is reproducible with test-space-drawing, replace the text with only two lines:
- The first line needs to be long enough to take more space than the window width, for example a long line full of dashes.
- The second line is empty.
Then the implicit trailing newline is not drawn on the second line, it bugs at that location.