From 9be80da2cd57e56a5b9c6f5780979cf4741d0ef7 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Sun, 14 Apr 2019 21:33:57 +0200 Subject: [PATCH] Quote value when changing an attribute --- taskwarrior.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/taskwarrior.el b/taskwarrior.el index caa735e..f58d554 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -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"