-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #124: Treat :character offsets as UTF-16 code units
The spec says that :character offsets are based on a UTF-16 representation. Previously we were assuming that :character specifies the number of characters. * eglot.el (eglot-full-position-conversion): New defvar. (eglot--count-characters): New function. (eglot--pos-to-lsp-position): (eglot--lsp-position-to-point): Use it.
- Loading branch information
Showing
1 changed file
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters