Function: eca-editor--lsp-position->eca

eca-editor--lsp-position->eca is a natively compiled function defined in eca-editor.el.

Signature

(eca-editor--lsp-position->eca POSITION)

Documentation

Convert 0-based lsp POSITION to a 1-based eca position.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-editor.el
(defun eca-editor--lsp-position->eca (position)
  "Convert 0-based lsp POSITION to a 1-based eca position."
  (list :line (1+ (or (eca-editor--lsp-obj-get position :line) 0))
        :character (1+ (or (eca-editor--lsp-obj-get position :character) 0))))