fix(cli): split tput call into two separate calls
This fixes an issue where, on some systems, `tput cols lines` does not produce "N\nM" (where N = number of columns in the terminal and M = number of lines), and instead produces "N\n", causing parsing errors.
This commit is contained in:
parent
8816508d6c
commit
beef0aef02
2 changed files with 2 additions and 2 deletions
|
@ -578,7 +578,7 @@ Throws `doom-cli-invalid-option-error' for illegal values."
|
|||
;; The geometry of the terminal window.
|
||||
(geometry (when-let* ((geom (getenv "__DOOMGEOM"))
|
||||
((not (string-blank-p geom)))
|
||||
(geom (split-string geom "\n")))
|
||||
(geom (split-string geom "x")))
|
||||
(cons (string-to-number (car geom))
|
||||
(string-to-number (cadr geom)))))
|
||||
;; Whether the script is being piped into or out of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue