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

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

[elpa] master 4f2d27e 02/31: Avoid using company-preview-frontend when i


From: Dmitry Gutov
Subject: [elpa] master 4f2d27e 02/31: Avoid using company-preview-frontend when it'll be invisible
Date: Sun, 14 Apr 2019 22:06:14 -0400 (EDT)

branch: master
commit 4f2d27ee8a5e74778911dc63d5aa0122bfffe0d4
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Avoid using company-preview-frontend when it'll be invisible
    
    #150 #205 #451
---
 company.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/company.el b/company.el
index a1e72ab..9a04201 100644
--- a/company.el
+++ b/company.el
@@ -3042,6 +3042,9 @@ Delay is determined by `company-tooltip-idle-delay'."
 (defun company--show-inline-p ()
   (and (not (cdr company-candidates))
        company-common
+       (not (eq t (compare-strings company-prefix nil nil
+                                   (car company-candidates) nil nil
+                                   t)))
        (or (eq (company-call-backend 'ignore-case) 'keep-prefix)
            (string-prefix-p company-prefix company-common))))
 



reply via email to

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