Browse Source

org-capture: Fix aborting a captured row

* lisp/org-capture.el (org-capture-place-table-line): Add missing
  `org-capture-mark-kill-region'.
Nicolas Goaziou 6 years ago
parent
commit
cbb48611ef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
lisp/org-capture.el

@@ -1268,6 +1268,7 @@ may have been stored before."
 		 (insert text)
 		 (point))))
       (org-capture-position-for-last-stored 'table-line)
+      (org-capture-mark-kill-region beg end)
       (when (or (re-search-backward "%\\?" beg t)
 		(re-search-forward "%\\?" end t))
 	(replace-match "")))