Quote value when changing an attribute

This commit is contained in:
Patrick Winter 2019-04-14 21:33:57 +02:00
parent 11c8e91432
commit 9be80da2cd

View file

@ -137,8 +137,9 @@
(id (taskwarrior-id-at-point))
(task (taskwarrior-export-task id))
(old-value (cdr (assoc-string attribute task)))
(new-value (read-from-minibuffer (concat prefix " ") old-value)))
(taskwarrior--mutable-shell-command "modify" id (concat prefix new-value))))
(new-value (read-from-minibuffer (concat prefix " ") old-value))
(quoted-value (concat "\"" new-value "\"")))
(taskwarrior--mutable-shell-command "modify" id (concat prefix quoted-value))))
(defun taskwarrior-change-description ()
"Change the description of a task"