fix(cli): type error when __DOOMGEOM is empty

This commit is contained in:
Henrik Lissner
2022-06-19 02:18:19 +02:00
parent 09ddac1d7a
commit f4e7e8be56

View File

@ -577,6 +577,7 @@ Throws `doom-cli-invalid-option-error' for illegal values."
-1))
;; The geometry of the terminal window.
(geometry (when-let* ((geom (getenv "__DOOMGEOM"))
((not (string-blank-p geom)))
(geom (split-string geom "\n")))
(cons (string-to-number (car geom))
(string-to-number (cadr geom)))))