aboutsummaryrefslogtreecommitdiff
path: root/lib/oneliner.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-08-06 09:09:42 -0500
committerColin Okay <colin@cicadas.surf>2022-08-06 09:09:42 -0500
commitb46a00f1856947d66c8f74b9f24f7574133a1663 (patch)
treeee1bdf510b7bbeae9270702f7fd75f2d093b8782 /lib/oneliner.lisp
parent575695b5f1f204aa670b996e791822f36f47ee1d (diff)
[fix] saving local state after command finishes
Diffstat (limited to 'lib/oneliner.lisp')
-rw-r--r--lib/oneliner.lisp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/oneliner.lisp b/lib/oneliner.lisp
index 8386fa9..3935a0e 100644
--- a/lib/oneliner.lisp
+++ b/lib/oneliner.lisp
@@ -87,8 +87,10 @@
(equalp "manual" (oneliner-runstyle ol))))
(format t tags-line-format-string
(format nil "tags: ~{~a~^ ~}" (oneliner-tags ol))
- (oneliner-createdby ol)
- (datestring-of-universal-time (oneliner-createdat ol)))
+ (or (oneliner-createdby ol) " ")
+ (if (oneliner-createdat ol)
+ (datestring-of-universal-time (oneliner-createdat ol))
+ " "))
(loop
for x from 0 to (length (oneliner-brief ol)) by *term-width*
do (format t "~a~%"