[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 5a26fa0cb1 11/16: Fix broken command width
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 5a26fa0cb1 11/16: Fix broken command width |
Date: |
Fri, 20 May 2022 05:57:42 -0400 (EDT) |
branch: externals/dtache
commit 5a26fa0cb127765757a92cf91d6789ac7db73e45
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Fix broken command width
---
detached.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/detached.el b/detached.el
index 3c7ea8357d..0d5fa93a5e 100644
--- a/detached.el
+++ b/detached.el
@@ -897,7 +897,10 @@ Optionally CONCAT the command return command into a
string."
"Return SESSION's command as a string restrict it to MAX-LENGTH."
(let ((command (detached--session-command session)))
(if (<= (length command) max-length)
- command
+ (truncate-string-to-width
+ command
+ max-length
+ 0 ?\s)
(concat (substring (detached--session-command session) 0 (- max-length
3)) "..."))))
;;;; Support functions
- [elpa] externals/dtache updated (02651e47d3 -> e38c9c7649), ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 518317cc3e 07/16: Update comment, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache a2761a0517 06/16: Update broken test, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 72c563bc96 08/16: Fix indentation, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 2fe1e6fb0d 13/16: Update initialization of sessions, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 71028ba150 14/16: Fix incorrect function name, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache e38c9c7649 16/16: Revert badges in README, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache eefc2833b1 01/16: Update README, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 450c12ea0c 03/16: Rename all files, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache f835ca1172 04/16: Update README, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 5a26fa0cb1 11/16: Fix broken command width,
ELPA Syncer <=
- [elpa] externals/dtache 249e21f498 15/16: Fix too long docstring, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 2d33efdd9d 02/16: Rename dtache -> detached, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache fa7aa42f43 05/16: Update CHANGELOG, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache cbc8c8ae70 09/16: Minor update to README, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 34becd11d6 10/16: Remove temporary hack, ELPA Syncer, 2022/05/20
- [elpa] externals/dtache 02ff2173d3 12/16: Update header description in detached.el, ELPA Syncer, 2022/05/20