Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #124: Treat :character offsets as UTF-16 code units #125

Closed
wants to merge 1 commit into from
Closed

Fix #124: Treat :character offsets as UTF-16 code units #125

wants to merge 1 commit into from

Commits on Nov 7, 2018

  1. 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.
    mkcms committed Nov 7, 2018
    Configuration menu
    Copy the full SHA
    1056a84 View commit details
    Browse the repository at this point in the history