diff options
author | Nicholas Vollmer <iarchivedmywholelife@gmail.com> | 2020-09-25 03:42:57 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-09-25 22:33:44 -0400 |
commit | 1d66a58a222612973e3b73acdb0464aa459f526a (patch) | |
tree | d9be9fc09d3499c81899987c3f4b2d876f8a1526 | |
parent | 8c44f2e33fa56bbb25839432245de76d6854d7e4 (diff) | |
download | org-mode-1d66a58a222612973e3b73acdb0464aa459f526a.tar.gz |
capture: Fix bare link "Args out of range"
* lisp/org-capture.el (org-capture-fill-template): Guard against empty
annotation string when handling the recently added %L placeholder.
-rw-r--r-- | lisp/org-capture.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index a6e95f2..67c58ff 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1595,7 +1595,7 @@ The template may still contain \"%?\" for cursor positioning." (v-l (if (and v-a (string-match l-re v-a)) (replace-match "[[\\1]]" nil nil v-a) v-a)) - (v-L (if (or v-a (string-match l-re v-a)) + (v-L (if (and v-a (string-match l-re v-a)) (replace-match "\\1" nil nil v-a) v-a)) (v-n user-full-name) |