File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 163
163
164
164
(defun jcs-modeline--char-displayable-p (str-or-char )
165
165
" Check if STR-OR-CHAR is displayable."
166
- (when- let* ((char (if (stringp str-or-char)
167
- (string-to-char str-or-char)
168
- str-or-char))
169
- (result (or (gethash char jcs-modeline--char-displayable-cache)
170
- (char-displayable-p char))))
166
+ (let* ((char (if (stringp str-or-char)
167
+ (string-to-char str-or-char)
168
+ str-or-char))
169
+ (result (or (gethash char jcs-modeline--char-displayable-cache)
170
+ (char-displayable-p char))))
171
171
(puthash char result jcs-modeline--char-displayable-cache)
172
- str-or-char))
172
+ ( and result str-or-char) ))
173
173
174
174
; ; TODO: Use function `string-pixel-width' after 29.1
175
175
(defun jcs-modeline--string-pixel-width (str )
You can’t perform that action at this time.
0 commit comments