At least on Portable HeidiSQL 64 bit that I use for many years (THANKS to the developer for such great piece of software!) there's an extremely annoying bug that I confirm that I can replicate.
As seen in the attached files, a "visual band", usually (but now always) 5 lines deep and starting around char 16th, "messes up" visually with the code. Not only hiding it but when writing over it messing with the writing sequence. Immediately after running the query, it "goes away" but then, the moment one changes any character in any of the lines or even lower ones, it comes back...
I installed a full clean portable 64 version and inserted manually my sites config (ie, did not use the export/import) and still keep the problem. I'm I the only one having this problem? Because using "dark" modes??? All dark modes have same bug, didn't test other modes...