biome-grid: fix display for null variables

This commit is contained in:
Pavel Korytov 2023-07-23 14:23:38 +03:00
parent e31b7831da
commit 2be2e86e38
2 changed files with 4 additions and 0 deletions

View file

@ -485,6 +485,7 @@ the API. UNIT is the unit of the column."
(mapcar (mapcar
(lambda (entry) (lambda (entry)
(cond (cond
((or (equal entry "")) entry)
((eq (car-safe format-def) 'gradient) ((eq (car-safe format-def) 'gradient)
(biome-grid--format-gradient entry (cdr format-def) col-width)) (biome-grid--format-gradient entry (cdr format-def) col-width))
((numberp entry) (format (format "%%%ds" col-width) entry)) ((numberp entry) (format (format "%%%ds" col-width) entry))

View file

@ -735,6 +735,9 @@ exclude from the result."
for subkey = (seq-take key i) for subkey = (seq-take key i)
for dupe-names = (gethash subkey names-by-key) for dupe-names = (gethash subkey names-by-key)
when dupe-names append dupe-names))))) when dupe-names append dupe-names)))))
;; XXX I don't have the slighest idea why, but renaming the
;; variable `key-1' into `key' makes the byte-compiler complain
;; about `key' being unused. Hope that's not a Heisenbug.
(cl-loop (cl-loop
for name in names-to-update for name in names-to-update
for old-key = (gethash name keys-by-name) for old-key = (gethash name keys-by-name)