From 8a20f8e8db2b49ac25ed76ba6ab1048f7ccf03db Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 16 Oct 2021 06:25:14 +0200 Subject: [PATCH] [Bugfix] Make sure we remove all text properties before outputting JSON data --- org-clock-waybar.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org-clock-waybar.el b/org-clock-waybar.el index 6194fa3..291556b 100644 --- a/org-clock-waybar.el +++ b/org-clock-waybar.el @@ -197,7 +197,11 @@ value of `org-clock-waybar-not-clocked-in-text'." This function is ought to be used via Emacsclient: emacsclient --eval '(org-clock-waybar-output-task)'" - (org-clock-waybar--get-clocked-task-json)) + (let* ((output (org-clock-waybar--get-clocked-task-json)) + (start 0) + (end (length output))) + (set-text-properties start end nil output) + output)) (defun org-clock-waybar-setup () "Setup org-clock-waybar.