[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company e5c7432607: company--render-icons-margin: Use >
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company e5c7432607: company--render-icons-margin: Use >= to compare font height to target size |
Date: |
Wed, 25 Jan 2023 22:57:23 -0500 (EST) |
branch: externals/company
commit e5c7432607d8978ec10942c99ba636e7e2cd79df
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@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))))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/company e5c7432607: company--render-icons-margin: Use >= to compare font height to target size,
ELPA Syncer <=