Line numbers mode is the problem
This commit is contained in:
Yuan Fu 2019-11-02 00:09:10 -04:00
parent 033df7175d
commit fcebfaa141
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -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)
(+ (* (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)