diff --git a/eldoc-box.el b/eldoc-box.el index 9af4d98..984afd2 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -249,9 +249,11 @@ The coordinate is relative to the native frame. WINDOW nil means use selected window." (let* ((pos (pos-visible-in-window-p point window t)) (x (car pos)) + (en (frame-char-width)) (y (cadr pos)) (edges (window-edges window nil nil t))) - (cons (+ x (car edges)) + ;; HACK: for unknown reasons we need to add en to x position + (cons (+ x (car edges) en) (+ y (cadr edges))))) (defun eldoc-box--default-at-point-position-function-1 (width height)