Line end rectangle
Neil <[email protected]> Tue, 10 Feb 2026 15:30:13 -0800 (PST)
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_252204_12955682.1770766213509 Content-Type: multipart/alternative; boundary="----=_Part_252205_935061947.1770766213509" ------=_Part_252205_935061947.1770766213509 Content-Type: text/plain; charset="UTF-8" At the end of every line in Scintilla is a rectangle that may be painted in selection colour if that line end is selected. It is as wide as an average character. When that line end is not selected the rectangle is drawn in the background colour of the line end which is often the global background colour so not noticeable. However, when there is a full line element like a line comment or preprocessor directive with a background colour, this is visible. Example of some Lua code with a comment background colour at https://www.scintilla.org/EOLBackground.png In the example each line ends with its final graphical character - there is no line-end whitespace. This is very old behaviour and may have been intentional but I'm unsure now whether it is reasonable. I am inclined to draw this area in the global background colour like the remainder of the line unless the style includes the EOLFilled option. The selection colour will still be applied over this when the line end is selected. -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/a1badf2d-4451-485c-ae56-95fbcbe86761n%40googlegroups.com. ------=_Part_252205_935061947.1770766213509 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable At the end of every line in Scintilla is a rectangle that may be painted in= selection colour if that line end is selected. It is as wide as an average= character.<div><br /></div><div>When that line end is not selected the rec= tangle is drawn in the background colour of the line end which is often the= global background colour so not noticeable. However, when there is a full = line element like a line comment or preprocessor directive with a backgroun= d colour, this is visible.</div><div><br /></div><div>Example of some Lua c= ode with a comment background colour at</div><div>https://www.scintilla.org= /EOLBackground.png</div><div>In the example each line ends with its final g= raphical character - there is no line-end whitespace.</div><div><br /></div= ><div>This is very old behaviour and may have been intentional but I'm unsu= re now whether it is reasonable. I am inclined to draw this area in the glo= bal background colour like the remainder of the line unless the style inclu= des the EOLFilled option. The selection colour will still be applied over t= his when the line end is selected.</div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;scintilla-interest" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= scintilla-interest/a1badf2d-4451-485c-ae56-95fbcbe86761n%40googlegroups.com= ?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/= scintilla-interest/a1badf2d-4451-485c-ae56-95fbcbe86761n%40googlegroups.com= </a>.<br /> ------=_Part_252205_935061947.1770766213509-- ------=_Part_252204_12955682.1770766213509--