ui/doom-modeline: silent xpm errors in tty emacs
This commit is contained in:
parent
c97c460ce2
commit
6b453962d7
1 changed files with 20 additions and 19 deletions
|
@ -180,6 +180,7 @@ active."
|
|||
(let ((data (make-list (or height +doom-modeline-height)
|
||||
(make-list (or width +doom-modeline-bar-width) 1)))
|
||||
(color (or (face-background face nil t) "None")))
|
||||
(ignore-errors
|
||||
(create-image
|
||||
(concat
|
||||
(format "/* XPM */\nstatic char * percent[] = {\n\"%i %i 2 1\",\n\". c %s\",\n\" c %s\","
|
||||
|
@ -198,7 +199,7 @@ active."
|
|||
if (= d 0) collect (string-to-char " ")
|
||||
else collect (string-to-char "."))
|
||||
(if (eq idx len) "\"};" "\",\n")))))
|
||||
'xpm t :ascent 'center))))
|
||||
'xpm t :ascent 'center)))))
|
||||
|
||||
(defun +doom-modeline-buffer-file-name ()
|
||||
"Propertized `buffer-file-name' based on `+doom-modeline-buffer-file-name-style'."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue