diff options
| author | João Távora <joaotavora@gmail.com> | 2026-05-09 00:58:36 +0100 |
|---|---|---|
| committer | João Távora <joaotavora@gmail.com> | 2026-05-09 02:52:18 +0100 |
| commit | 56f27dd9f066a1dc80942a100f1045bdf5376152 (patch) | |
| tree | af9ae91dd432126887259af75666b2057b8036ed /java/org/gnu | |
| parent | 543d8a7a9d7edadced77aced028b848bd9802a6b (diff) | |
Eglot: fix eglot--sig-info with non-UTF-32 positionEncoding
Github-reference: https://github.com/joaotavora/eglot/discussions/1588
When the server negotiates positionEncoding utf-8 or utf-16,
ParameterInformation.label vector offsets are byte/code-unit counts
into the signature label, not character counts. Using them raw caused
wrong highlights and crashes on Unicode-rich signatures.
* lisp/progmodes/eglot.el (eglot--sig-info): Mostly rewrite.
(eglot-move-to-utf-8-linepos-function): Tweak docstring.
(eglot-move-to-utf-8-linepos, eglot-move-to-utf-16-linepos): Return
position moved to.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions
