mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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))
|
||||
;; 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)))))
|
||||
|
Reference in New Issue
Block a user