diff --git a/acm/acm-icon.el b/acm/acm-icon.el index ff7357e0bd..1ab0706209 100644 --- a/acm/acm-icon.el +++ b/acm/acm-icon.el @@ -197,7 +197,7 @@ If COLOR-NAME is unknown to Emacs, then return COLOR-NAME as-is." (apply #'color-rgb-to-hex (append rgb-color '(2))) color-name))) -(defun acm-icon (collection name &optional fg-color bg-color zoom) +(defun acm-icon (collection name &optional fg-color bg-color) (let* ((root (acm-icon-parse collection name)) ;; Read original viewbox @@ -212,11 +212,6 @@ If COLOR-NAME is unknown to Emacs, then return COLOR-NAME as-is." (svg-width (* (window-font-width) acm-icon-width)) (svg-height (* (window-font-height) 1)) - ;; Zoom the icon by using integer factor only - (zoom (max 1 (truncate (or zoom 1)))) - (svg-width (* svg-width zoom)) - (svg-height (* svg-height zoom)) - (svg-viewbox (format "%f %f %f %f" view-x view-y view-width view-height)) (fg-color (acm-icon-convert-to-svg-color (or (when (facep fg-color) diff --git a/acm/acm.el b/acm/acm.el index f5ccd827fa..3002615250 100644 --- a/acm/acm.el +++ b/acm/acm.el @@ -767,7 +767,7 @@ The key of candidate will change between two LSP results." (dolist (v items) (let* ((icon (cdr (assoc (downcase (plist-get v :icon)) acm-icon-alist))) (icon-default (cdr (assoc t acm-icon-alist))) - (display-icon (if icon icon icon-default)) + (display-icon (or icon icon-default)) (candidate (plist-get v :display-label)) (annotation (plist-get v :annotation)) (annotation-text (format "%s " (capitalize (if annotation annotation ""))))