From adaf4e06e541745216bfabf8c4af1812f15ae7d1 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 21 Mar 2026 00:19:27 +0100 Subject: transient-infix-read: Avoid turning nil into "" if multi-value is non-nil If STRINGS is nil, `string-join' returns the empty string, not nil. Closes #434. --- lisp/transient.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/transient.el b/lisp/transient.el index 9ca41b6..eda4265 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -3986,7 +3986,9 @@ it\", in which case it is pointless to preserve history.)" (reader (oref obj reader)) (choices (if (functionp choices) (funcall choices) choices)) (prompt (transient-prompt obj)) - (value (if multi-value (string-join value ",") value)) + (value (if (and multi-value value) + (string-join value ",") + value)) (history-key (or (oref obj history-key) (oref obj command))) (transient--history (alist-get history-key transient-history)) -- cgit v1.0