Explorar o código

Capture: Fix positioning error when :unnarrowed property is set

* lisp/org-capture.el (org-capture-place-entry): Move to `beg' before
searching for `%?'.
Carsten Dominik %!s(int64=15) %!d(string=hai) anos
pai
achega
ed39b332fb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
lisp/org-capture.el

@@ -735,6 +735,7 @@ already gone."
     (setq end (point))
     (org-capture-mark-kill-region beg (1- end))
     (org-capture-narrow beg (1- end))
+    (goto-char beg)
     (if (re-search-forward "%\\?" end t) (replace-match ""))))
 
 (defun org-capture-place-item ()