mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
fix(cli): type error when __DOOMGEOM is empty
This commit is contained in:
@ -577,6 +577,7 @@ Throws `doom-cli-invalid-option-error' for illegal values."
|
|||||||
-1))
|
-1))
|
||||||
;; The geometry of the terminal window.
|
;; The geometry of the terminal window.
|
||||||
(geometry (when-let* ((geom (getenv "__DOOMGEOM"))
|
(geometry (when-let* ((geom (getenv "__DOOMGEOM"))
|
||||||
|
((not (string-blank-p geom)))
|
||||||
(geom (split-string geom "\n")))
|
(geom (split-string geom "\n")))
|
||||||
(cons (string-to-number (car geom))
|
(cons (string-to-number (car geom))
|
||||||
(string-to-number (cadr geom)))))
|
(string-to-number (cadr geom)))))
|
||||||
|
Reference in New Issue
Block a user