Function: eglot-move-to-utf-32-linepos
eglot-move-to-utf-32-linepos is a byte-compiled function defined in
eglot.el.gz.
Signature
(eglot-move-to-utf-32-linepos N)
Documentation
Move to line's Nth codepoint as computed by LSP's UTF-32 criterion.
Aliases
eglot-move-to-current-column (obsolete since 1.12)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot-move-to-utf-32-linepos (n)
"Move to line's Nth codepoint as computed by LSP's UTF-32 criterion."
;; We cannot use `move-to-column' here, because it moves to *visual*
;; columns, which can be different from LSP characters in case of
;; `whitespace-mode', `prettify-symbols-mode', etc. (github#296,
;; github#297)
(goto-char (min (+ (eglot--bol) n) (line-end-position))))