I would like to make some remarks to this issue before reporting to Scintilla.
The issue appears **ONLY** if Document>Line Wrapping is activated. I recognized today that there are three variations of the issue: 1. short line, so the text does not go to the right border (that means that one can still add some words in the line) (image from https://github.com/xiota/geany/issues/2#issuecomment-1233148860)

2. last line of a paragraph (image from https://github.com/xiota/geany/issues/2#issuecomment-1226190192)

3. line goes to the right border (image from https://github.com/geany/geany/issues/3271#issuecomment-1236386886)

In the nightly tarball I can not confirm 1 and 2, so 1 and 2 seem to be solved. But I have to check 1 and 2 with the plugin Geany Preview and two-lua-scripts what I will do in the next days if 1 and 2 were really solved. Geany by PPA was also built yesterday (https://github.com/xiota/geany/issues/2#issuecomment-1236227970).
to point 3: to reproduce the issue: this line in a 22-inch-display in Full HD with a brand new Geany: `>You could comment out the ifdefs [here](https://github.com/geany/geany/blob/5cdfe35cf26ca6935eddc652cceb799e0cbad142...) so it happens on all platforms and GTK versions to see if it fixes it.`