summaryrefslogtreecommitdiff
path: root/mu4e/mu4e-headers.el
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2020-06-03 21:19:12 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2020-06-03 21:20:48 +0300
commitf89245fb77ab51ef932dbc8d30a9eb60e90a2ea0 (patch)
tree7be0a3eb43878b75f713b11753e81d8f7b49e2fc /mu4e/mu4e-headers.el
parentff87cf885d7cad5d9ef612ab4a4d91afd746f6da (diff)
mu4e: avoid trouble with truncate-string-to-width
Treatment of the 'ellipsis' parameter is a bit unclear, gave errors in some cases. Fixes #1716
Diffstat (limited to 'mu4e/mu4e-headers.el')
-rw-r--r--mu4e/mu4e-headers.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el
index f45025b..89b2403 100644
--- a/mu4e/mu4e-headers.el
+++ b/mu4e/mu4e-headers.el
@@ -681,7 +681,7 @@ found."
(defun mu4e~headers-field-truncate-to-width (_msg _field val width)
"Truncate VAL to WIDTH."
(if width
- (truncate-string-to-width val width 0 ?\s t)
+ (truncate-string-to-width val width 0 ?\s truncate-string-ellipsis)
val))
(defvar mu4e~headers-field-handler-functions
@@ -1032,7 +1032,7 @@ after the end of the search results."
(concat
(propertize
(if width
- (truncate-string-to-width name width 0 ?\s t)
+ (truncate-string-to-width name width 0 ?\s truncate-string-ellipsis)
name)
'face (when arrow 'bold)
'help-echo help