The issue of short lines and last lines of paragraphs disappears when buffered drawing (SCI_SETBUFFEREDDRAW) is turned off (https://github.com/xiota/geany/issues/2#issuecomment-1249414773 and https://github.com/xiota/geany/issues/2#issuecomment-1249501316).