Quote value when changing an attribute
This commit is contained in:
parent
11c8e91432
commit
9be80da2cd
1 changed files with 3 additions and 2 deletions
|
@ -137,8 +137,9 @@
|
||||||
(id (taskwarrior-id-at-point))
|
(id (taskwarrior-id-at-point))
|
||||||
(task (taskwarrior-export-task id))
|
(task (taskwarrior-export-task id))
|
||||||
(old-value (cdr (assoc-string attribute task)))
|
(old-value (cdr (assoc-string attribute task)))
|
||||||
(new-value (read-from-minibuffer (concat prefix " ") old-value)))
|
(new-value (read-from-minibuffer (concat prefix " ") old-value))
|
||||||
(taskwarrior--mutable-shell-command "modify" id (concat prefix new-value))))
|
(quoted-value (concat "\"" new-value "\"")))
|
||||||
|
(taskwarrior--mutable-shell-command "modify" id (concat prefix quoted-value))))
|
||||||
|
|
||||||
(defun taskwarrior-change-description ()
|
(defun taskwarrior-change-description ()
|
||||||
"Change the description of a task"
|
"Change the description of a task"
|
||||||
|
|
Loading…
Reference in a new issue