aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2021-11-25 17:54:30 +1100
committerYuchen Pei <hi@ypei.me>2021-11-25 17:54:30 +1100
commit8eccce9917a5f0d7f61de154c7ef9e5d48d2290a (patch)
tree7281eb7664cca5f667816aa75a1baed06c50e743
parentfd37f9c452d615e42c2768a3a81a6700335f66d5 (diff)
adding a gap when no-newline is non-nil so that horizontal arrangement works
-rw-r--r--emms-playlist-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index a2aefca..f4de0dc 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -475,7 +475,8 @@ When NO-NEWLINE is non-nil, do not insert a newline after the track."
'face 'emms-playlist-track-face))
(when (emms-playlist-selected-track-at-p)
(emms-playlist-mode-overlay-selected))
- (unless no-newline
+ (if no-newline
+ (insert " ")
(insert "\n"))))
(defun emms-playlist-mode-update-track-function ()