diff options
author | Thanos Apollo <[email protected]> | 2023-09-30 00:24:40 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-30 00:24:40 +0300 |
commit | 238b2c56c0badc3b21fd168d5ae6ef336d6b9e29 (patch) | |
tree | 7eb172f16f19f923524ffa9f91a8cf91af3f9ee7 | |
parent | c0c228e39d604e23c862e3b8a978036543fa6597 (diff) |
yeetube-buffer-fix-title: Add option to remove emojis
If `yeetube-buffer-display-emojis` is `nil`
use `yeetube-buffer-strip-emojis`
-rw-r--r-- | yeetube-buffer.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yeetube-buffer.el b/yeetube-buffer.el index cfa0e93..6631f62 100644 --- a/yeetube-buffer.el +++ b/yeetube-buffer.el @@ -56,7 +56,9 @@ Emojis cause formatting issues, this should be off by default." (mapc (lambda (replacement) (setf title (replace-regexp-in-string (car replacement) (cdr replacement) title))) replacements) - title)) + (if yeetube-buffer-display-emojis + title + (yeetube-buffer-strip-emojis title)))) (defun yeetube-buffer-fix-view-count (view-count) "Fix VIEW-COUNT display issues." |