From f4e7e8be56451d9759babcbb4d24294fea3847e3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 19 Jun 2022 02:18:19 +0200 Subject: [PATCH] fix(cli): type error when __DOOMGEOM is empty --- core/core-cli-lib.el | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core-cli-lib.el b/core/core-cli-lib.el index 2feabb93e..754f1c7e1 100644 --- a/core/core-cli-lib.el +++ b/core/core-cli-lib.el @@ -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)))))