[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient ab83182854 2/2: transient--insert-group(colum
|
From: |
Jonas Bernoulli |
|
Subject: |
[elpa] externals/transient ab83182854 2/2: transient--insert-group(columns): Drop separator before first column |
|
Date: |
Wed, 31 May 2023 12:17:05 -0400 (EDT) |
branch: externals/transient
commit ab831828546e76d63063be71b2565d8ebb9e756f
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--insert-group(columns): Drop separator before first column
---
lisp/transient.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 86e653651b..f78b6dda6c 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3387,7 +3387,9 @@ have a history of their own.")
(insert ?\n)
(insert (propertize " " 'display
`(space :align-to (,(nth (1+ c) cc)))))))
- (insert (make-string (max 1 (- (nth c cc) (current-column))) ?\s))
+ (when (> c 0)
+ (insert (make-string (max 1 (- (nth c cc) (current-column)))
+ ?\s)))
(when-let ((cell (nth r (nth c columns))))
(insert cell))
(when (= c (1- cs))