branch: elpa/elfeed
commit a72fa9c9de754e53b4803d3c7014ca755ee5007a
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Use truncate
---
 elfeed-search.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/elfeed-search.el b/elfeed-search.el
index 86e7390ed2..0af9d3ba6a 100644
--- a/elfeed-search.el
+++ b/elfeed-search.el
@@ -393,12 +393,13 @@ The customization `elfeed-search-date-format' sets the 
formatting."
          (window (get-buffer-window))
          (title-width (- (if window (window-width window) (frame-width))
                          10 elfeed-search-trailing-width))
-         (title-column (elfeed-format-column
-                        title (elfeed-clamp
-                               elfeed-search-title-min-width
-                               title-width
-                               elfeed-search-title-max-width)
-                        :left)))
+         (title-column (truncate-string-to-width
+                        title
+                        (elfeed-clamp
+                         elfeed-search-title-min-width
+                         title-width
+                         elfeed-search-title-max-width)
+                        nil ?\s t)))
     (insert (propertize date 'face 'elfeed-search-date-face) " "
             (propertize title-column 'face title-faces 'kbd-help title))
     (when feed-title

Reply via email to