Explorar o código

Fix bug with capture template prompt history

* lisp/org-capture.el (org-capture-fill-template): Initialize history variable.
Carsten Dominik %!s(int64=14) %!d(string=hai) anos
pai
achega
2b3fa6ef3e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
lisp/org-capture.el

@@ -1202,6 +1202,7 @@ The template may still contain \"%?\" for cursor positioning."
 				   "org-capture-template-prompt-history::"
 				   (or prompt "")))
 		  completions (mapcar 'list completions)))
+	  (unless (boundp histvar) (set histvar nil))
 	  (cond
 	   ((member char '("G" "g"))
 	    (let* ((org-last-tags-completion-table