From 7fa3b78d073c235ad945fc28d692c5f5fb60860a Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Mon, 16 Mar 2020 15:56:50 -0400 Subject: [PATCH] Add at point position hack This should fix #22 --- eldoc-box.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)