branch: externals/listen
commit 57a25bdd9a03abfdf4ae84bebe7bacbe1c651b0f
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>
Fix: Duplication of "Duration" at bottom of queue
When refreshing a queue, the "Duration" would be added to the end of
the buffer each time, rather than replacing it.
---
listen-queue.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/listen-queue.el b/listen-queue.el
index 94d7f431ee..ea1203ebae 100644
--- a/listen-queue.el
+++ b/listen-queue.el
@@ -251,6 +251,7 @@ To be called in a queue's buffer."
(inhibit-read-only t))
(setf (map-elt (listen-queue-etc queue) :duration) duration)
(vtable-end-of-table)
+ (delete-region (point) (point-max))
(when duration
(insert (format "Duration: %s" (listen-format-seconds duration))))
(listen-queue--highlight-current)))