SCI_GETCOLUMN/SCI_FINDCOLUMN does not take character representations into account

"'Robin Haberkorn' via scintilla-interest" <[email protected]> Sun, 08 Mar 2026 21:46:55 +0000
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
--046ac44945448e4f5df7c50c3a11c8f3d3eb111dbb27e12a068eb55d5a9b
Content-Type: text/plain; charset="UTF-8"

Dear Scintilla hackers,

I notice that SCI_GETCOLUMN and SCI_FINDCOLUMN do not take the length of
character representations into account. A character with a representation is
always counted as one even if it takes up several characters. Looking into
Document::GetColumn() it's pretty obvious that there is currently no
expansion of character representations.

Considering that these messages do take the display size of tabs into
account, IMHO it would make sense if it took the size of representations into
account as well. Imagine a document with many character representations and
trying something like "put the cursor into the same column, just 10 lines
earlier".

If Neil agrees that this is a bug/shortcoming, I could look into this and
prepare a patch.

Best regards,
Robin

-- 
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/DGXQBJ1MWFLK.3A19VLQFLUT8E%40googlemail.com.

--046ac44945448e4f5df7c50c3a11c8f3d3eb111dbb27e12a068eb55d5a9b
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEB/6AD3js1eGB4raKarMDYY4q6voFAmmt7lAACgkQarMDYY4q
6vrcaQf/UqF4P4r0X4Xce/iY+adzW8aClIoJ21Lqfw67woi4WHp59ar9DU1jq42D
K3LRG3oou4O6FEXqFyU+fX3kArPfh3lVNXO3Hs+5+eSaFEHX3ihHZGkf/ETAX4kW
IUMyxp22PQa9lNb4D8d7E5He3oTLeK79/uhRq9cCrLdifhpqMC7EpB6EbI0uqKx+
t/rsvZGfK7mx6alL1qMtpFCHdYv6WrGAPBoL7IxT5AoV9e9/yj75XHMQz2dCRMji
WbSD78tFppg8XSVKhaxLQKlT3EsqQDo179kbYFEVl8iEHFOr5K0NbFBZ0ONkwbQK
SanKbzoZa30veC26wik5RtInjynjSg==
=remD
-----END PGP SIGNATURE-----

--046ac44945448e4f5df7c50c3a11c8f3d3eb111dbb27e12a068eb55d5a9b--