diff options
author | Bastien <bzg@gnu.org> | 2020-02-07 20:44:31 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-02-07 20:44:31 +0100 |
commit | 4fe4d12a799ab89258c37a26a8476b6c6079ad1f (patch) | |
tree | 854bbb4d8e629b1f9f4c9d887c308d1bd50f3fef | |
parent | 62b9b63af813ef950fdf66b350f4c0f3fa65d6fc (diff) | |
parent | 5fc950a494989e39f1735462e4e2e48cfdb2d9db (diff) | |
download | org-mode-4fe4d12a799ab89258c37a26a8476b6c6079ad1f.tar.gz |
Merge branch 'maint'
-rw-r--r-- | lisp/org-capture.el | 2 | ||||
-rw-r--r-- | testing/lisp/test-org-capture.el | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 699ca3d..84b0e4f 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1156,7 +1156,7 @@ may have been stored before." (org-capture-empty-lines-after) (unless (org-at-heading-p) (outline-next-heading)) (org-capture-mark-kill-region origin (point)) - (org-capture-narrow beg (1- (point))) + (org-capture-narrow beg (point)) (when (or (search-backward "%?" beg t) (search-forward "%?" nil t)) (replace-match "")))))) diff --git a/testing/lisp/test-org-capture.el b/testing/lisp/test-org-capture.el index 124ef43..10cfcbf 100644 --- a/testing/lisp/test-org-capture.el +++ b/testing/lisp/test-org-capture.el @@ -208,7 +208,6 @@ (org-capture-templates `(("t" "Todo" entry (file+headline ,file "A") "** H1 %?")))) (org-capture nil "t") - (goto-char (point-max)) (insert "Capture text") (org-capture-finalize)) (buffer-string)))) |