aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--org-link-edit.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/org-link-edit.el b/org-link-edit.el
index 482db7b..27e8648 100644
--- a/org-link-edit.el
+++ b/org-link-edit.el
@@ -84,7 +84,8 @@ The list includes
((looking-at org-bracket-link-regexp)
(list (match-beginning 0)
(match-end 0)
- (org-link-unescape (match-string-no-properties 1))
+ (save-match-data
+ (org-link-unescape (match-string-no-properties 1)))
(or (and (match-end 3)
(match-string-no-properties 3))
"")))