Skip to content

Commit

Permalink
Fix #15
Browse files Browse the repository at this point in the history
Line numbers mode is the problem
  • Loading branch information
casouri committed Nov 2, 2019
1 parent 033df71 commit fcebfaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eldoc-box.el
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,10 @@ If (point) != last point, cleanup frame.")
(defun eldoc-box--at-point-x-by-company ()
"Return the x position that accommodates company's popup."
(if (and (featurep 'company) company-pseudo-tooltip-overlay)
(* (frame-char-width)
(+ (overlay-get company-pseudo-tooltip-overlay 'company-width)
(overlay-get company-pseudo-tooltip-overlay 'company-column)))
(+ (* (frame-char-width)
(+ (overlay-get company-pseudo-tooltip-overlay 'company-width)
(overlay-get company-pseudo-tooltip-overlay 'company-column)))
(or (line-number-display-width t) 0))
nil))

(provide 'eldoc-box)
Expand Down

0 comments on commit fcebfaa

Please sign in to comment.