aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube-buffer.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-09-28 10:55:09 +0300
committerThanos Apollo <[email protected]>2023-09-28 10:55:09 +0300
commit18409bb32c0050527ff46295839f3afb22d66631 (patch)
treecbe48ddb018ba4026b4bfd5379de35332c29cc62 /yeetube-buffer.el
parent1714c15a5fc5e5946b2faa7a9f3f289ad7287d66 (diff)
[fix] yeetube-buffer: fix duration length
Diffstat (limited to 'yeetube-buffer.el')
-rw-r--r--yeetube-buffer.el4
1 files changed, 2 insertions, 2 deletions
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)))