aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-03-04 13:50:27 -0600
committerColin Okay <okay@toyful.space>2022-03-04 13:50:27 -0600
commitc6fca94d84cf988a72df6074dc7a469b6b4ccad4 (patch)
treeb39718e3559cd59fc5dc84a2de48a75af23d7446
parent76205ae5a8c1387b663317baa9cf78daeb7451aa (diff)
fallback setting term widht in print-oneliner-result-for-user
-rw-r--r--src/lib.lisp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.lisp b/src/lib.lisp
index b3741cd..b5256fe 100644
--- a/src/lib.lisp
+++ b/src/lib.lisp
@@ -474,6 +474,7 @@ and, failing that, try to fetch from configured server."
4)))
(defun print-oneliner-result-for-user (oneliner)
+ (unless *term-width* (set-term-width)) ; setting here as a fallback, can set it elswere if desired.
(let* ((title-line-format-str
(concatenate 'string "~" (prin1-to-string *term-width*) "<[~a]~;~a~;~a~>~%"))
(tags-line-format-string