fix(cli): type error when __DOOMGEOM is empty
This commit is contained in:
parent
09ddac1d7a
commit
f4e7e8be56
1 changed files with 1 additions and 0 deletions
|
@ -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)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue