branch: externals/company
commit e5c7432607d8978ec10942c99ba636e7e2cd79df
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    company--render-icons-margin: Use >= to compare font height to target size
    
    For the rare cases where default-font-height is exactly (* 2 base-size).
    
    Brought up in https://github.com/company-mode/company-mode/discussions/1364.
---
 company.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company.el b/company.el
index af056ebbe5..11f8b06767 100644
--- a/company.el
+++ b/company.el
@@ -1620,7 +1620,7 @@ end of the match."
                           (let ((base-size (cdr company-icon-size))
                                 (dfh (default-font-height)))
                             (min
-                             (if (> dfh (* 2 base-size))
+                             (if (>= dfh (* 2 base-size))
                                  (* 2 base-size)
                                base-size)
                              (* company-icon-margin dfw))))))

Reply via email to