branch: master
commit 8196ff6d846102ad23b705252e879d729304e021
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    Work around http://debbugs.gnu.org/18384
    
    Closes #249
---
 company.el |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/company.el b/company.el
index a7a5370..9f22027 100644
--- a/company.el
+++ b/company.el
@@ -2231,6 +2231,10 @@ If SHOW-VERSION is non-nil, show the version in the echo 
area."
                (let ((margins (window-margins)))
                  (+ (or (car margins) 0)
                     (or (cdr margins) 0)))))
+    (when (and word-wrap
+               (version< emacs-version "24.4.51.5"))
+      ;; http://debbugs.gnu.org/18384
+      (cl-decf ww))
     ww))
 
 (defun company--replacement-string (lines old column nl &optional align-top)

Reply via email to