emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 8196ff6 30/66: Work around http://debbugs.gnu.org/18384


From: Dmitry Gutov
Subject: [elpa] master 8196ff6 30/66: Work around http://debbugs.gnu.org/18384
Date: Tue, 13 Jan 2015 02:44:54 +0000

branch: master
commit 8196ff6d846102ad23b705252e879d729304e021
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]