From 18409bb32c0050527ff46295839f3afb22d66631 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 28 Sep 2023 10:55:09 +0300 Subject: [fix] yeetube-buffer: fix duration length --- yeetube-buffer.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yeetube-buffer.el') diff --git a/yeetube-buffer.el b/yeetube-buffer.el index c1c53b6..ed57809 100644 --- a/yeetube-buffer.el +++ b/yeetube-buffer.el @@ -111,12 +111,12 @@ (defun yeetube-buffer--format-video-duration (video-duration) "Format a video VIDEO-DURATION to be inserted in the *yeetube* buffer." (let* ((n (string-width video-duration)) - (extra-chars (- n 10)) + (extra-chars (- n 13)) (formatted-string (if (<= extra-chars 0) (concat video-duration (make-string (abs extra-chars) ?\ ) " ") - (concat (seq-subseq video-duration 0 20) + (concat (seq-subseq video-duration 0 10) "...")))) (propertize formatted-string 'face 'yeetube-face-duration))) -- cgit v1.2.3