mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-25 14:18:03 +01:00
Make sure replaced colors are case insensitive.
This commit is contained in:
parent
0601dc9218
commit
ddb4e803d7
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ without the extension. And the third being the type of icon."
|
|||
|
||||
(defun mode-icons-get-icon-display-xpm-replace (icon-path rep-alist)
|
||||
"Get xpm image from ICON-PATH and reaplce REP-ALIST in file."
|
||||
(let ((img (with-temp-buffer (insert-file-contents icon-path) (buffer-string))))
|
||||
(let ((case-fold-search t)
|
||||
(img (with-temp-buffer (insert-file-contents icon-path) (buffer-string))))
|
||||
(dolist (c rep-alist)
|
||||
(setq img (replace-regexp-in-string (regexp-quote (car c)) (cdr c) img t t)))
|
||||
img))
|
||||
|
|
Loading…
Reference in a new issue